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.
Thanks for the reply but I tried giving values to args and it will give me an outofboundsexception error Can you show me an example of something please so i can go about it by following the example, would i just leave my main class empty other than the args?