Yes, right, of course. Stupid IDE's are making me stupid.
Type: Posts; User: Cornix
Yes, right, of course. Stupid IDE's are making me stupid.
First of all, you have no control over how many command line arguments your program gets passed on start up. The user can type in anything he/she wants.
Thats why the parameter args is an Array of...
Probably because otherwise you would hardly be able to test your code.
There are ways to start a java program without a main method, but its not the usual way. The main method is the default...
First of all, it would be good if you started your own thread instead of hijacking the thread of other people. Thats really not the nice way.
But I will try to help you out as good as I can.
...