Not totally familiar witht the language yet, but..... If parseInt converts a string to an integer then you are trying to convert the value in arg[0] which is "ABC" to an integer. Sounds like an error to me.
Does it throw and error if you do parseInt with arg[1]? Aloha, James Rodel Bosque wrote: > hi guys, > > how to determine arguments if its a String or an integer? > > ex: > args[0] = "ABC" > args[1] = "10" > args[2] = "DEF" > args[3] = "20" > > as far as i know arguments is an array of String. > > if i use Integer.parseInt(args[0]) there is an error occured. > > can you help me explain what should i do. > > Thanks > rodel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
