Possible Duplicate:
How to convert string to int in Java?
MY code is supposed to read strings and then take the corresponding actions, but if that string is a line of numbers i need this line as a full number (an int) not as a string anymore.can this be done?
Use Integer.valueOf:
(There are other options as well.)