wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes parseInt question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "parseInt question" Watch "parseInt question" New topic

parseInt question

Jade Davidson
Ranch Hand

Joined: Oct 12, 2001
Posts: 64
I am still doing the numerology program where I am parsing the birthdate String (e.g., 12/31/2001.
I broke up the String to get rid of the formatting lines in the date (/ or -) and stored them as smaller Strings in an array. Now I want to convert the Strings to ints with wrapper classes. Can I use a method like parseInt on the array, or do I have to do it separately to each string in the array?
Rajan Chhibber

Joined: Apr 28, 2001
Posts: 9
u'll have to do it on each element of the array, using a loop
It is sorta covered in the JavaRanch Style Guide.
subject: parseInt question
Similar Threads
parseInt (String s, int radix)
Can a string array member serve as an index number of another string array?
how to compare string Array with different string
http 500 with stack trace