How to pass parameters to Java program?
Posted: Wed Oct 18, 2006 8:14 pm
Hi,
I can successfully compile and run programs that don't require any arguments to be supplied, but how to I pass parameters / arguments to the program.
On the command line I can type: " java GetDaysInMonth October " and my program would output 31, so how do I pass the 'October' in textpad?
Thank you
I can successfully compile and run programs that don't require any arguments to be supplied, but how to I pass parameters / arguments to the program.
On the command line I can type: " java GetDaysInMonth October " and my program would output 31, so how do I pass the 'October' in textpad?
Thank you