This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
againg nothing dear
Posted by nothing on June 08, 2001 at 3:01 AM
Sorry i dont know...... > I need to see if the first two digits are 12,25,35 etc. depending on these numbers I need to assign values to variable. How can I achieve this. I have the following code it works fine with one: > =========================== > if (!num.equals("")){ > if (num.substring(0,2).equals("25")){ > cata = "A"; > order = num; > } > else { > cata = "B"; > ctr = num; > } > }
> ================================== > if (num.substring(0,2).equals("25")){ here I need to have if the values .equals("12" "25" "35" etc) how can I do this. > Thanks in advance :)
Replies:
|