i cudnt succesfully convert command line argument to integer.
when i used the code
int firstArg = 0;
if (args.length > 0){
firstArg = Integer.parseInt(args[0]);
}
the compiler gives the following error
cannot find symbol
symbol :method parseInt(int)
location class java.lang.integer
firstArg=integer.parseInt(args[0]);}i used DOS prompt to execute the program! --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
