The error is because no arguments were added when the program started.
Since the signature of the called main method (by JVM) is public static void main(String[] args) and not public static void main(int[] args) if you want ints, you'll need to parse them from the arguments.