For converting Strings to Ints Try this: int i = Integer.parseInt(someString);