Originally Posted by Fou-Lu
In the main method the args represents what was passed to the main method. This is what is invoked with a command line call.
In Java, you can get these under the
args in your code. Quotations are removed so if you have a path with a space in it, you can safely wrap it with quotations during the command line call, and it will be without in the String provided to main.
Thank you for your response, I was thinking it was something about that but when I insert any value into args[0-any number] and run the program it says outofboundsexception do you know why it would do that? Also how would I go about this can you provide an example please? would i just have
public main void (String args)
Just 3 lines?