I Made a list:
List<String> list = new ArrayList<String>();
String someData = "1234";
list.add(someData);
Is there any way to convert someData
to int
or double
? The reason why i made it a String
in the first place is that I had to input few informations (using loop) from a Scanner
. Most of them is a String
. And now I will need few of them to be int-like 'cause I want to do some math operations.