6 Answers
6

Main is special since it has to be present to start the program, so it's required to have a fixed signature. Under the hood, the java runtime looks for the magic signature to start the program. The magic signature is

public static void main(String[] args)

If you want to get Integers, you'll need to parse them out after the fact, using

When the JVM loads your class and tries to execute it, it looks for the method main() with the signature

public static void main (String[] args) ...

Anything else is unaccptable. If you are expecting integers, use the Integer.parseInt() method to convert the input Strings to integers, as Zach mentioned. I'd put that conversion in a try-catch block to catch NumberFormatException, and have a