class ABC {
	public static void test(int i) 
	{
		if(i>2)
		{
			System.out.println(i+" is greater than 2");
		}
	}
	public static void main (String[] args)
	{
	test(30);	
	}	
}

Add a code snippet to your website: www.paste.org