You use the charAt method to get the char. You can then use a method in the Character class to convert the char '1' to the int 1.