passing argument to java program
Posted on 2004-03-30
i know we can pass the value to java program like:
java MyProgram Hello
Then in the MyProgram:
if ( args.length == 1 )
Greeting = args;
but my problem how can i pass the address to my program? E.g. No 2, Street 132, 53000, Malaysia.
The java will treat each space is a new argument rite?