[Solved] Why Java Only Allows String[] args as Main method Argument? [duplicate]
This is how you would run a java program in a command line: java YourMainClass The command line arguments comes after that: java YourMainClass arg1 arg2 arg3 This would make the args string array contain “arg1”, “arg2” and “arg3”. If you make the args array an int[], how on earth is arg1 going to be … Read more