calling method in java!

@puqimx (358)
Malaysia
February 10, 2010 2:13am CST
i have main function in my method for example: public static void main(String[]args) { statement } public static boolean Scan1(int[] num1) i want to call the the function scan1 to main
1 response
• China
10 Feb 10
because your method Scan1 is static ,so you can use it in main function directly just like public static void main(String args[]){ Scan1(args); } if method is not static ,u have to new class then call it =)