Hi,
The String API has methods that you can easily use to find any characters you want from the string. Once you have for example found a number use the String.parseInt () method to convert it to an integer.
Consider the methods charAt(), contains(), subString() e.t.c.
You can get a better response if you tell us exactly what you are trying to do and where you are particularly stuck.
You may want to brush up on the String class and the methods therein.
What I am trying to do is, I have a List which shows few string & int in one row as a one string.
So i want to get a substring of the the final string, which contains the (initial int value)numeric value i want. So then I can use it to do the rest of the calculations.
But I cannot use Integer.parseIn t(mysubstring) to pass tp a string because it contains both numeric and characters.
Click the first link and find the split() method explanation. (here's a link)
While you may think you have to learn an entirely new language, Jos and r0 have already given you the string needed to split your String. The rest is just some reading and code attempts.
Comment