Please explain what "isn't working" means?
Do you understand that the char '2' does NOT have an int value of 2? See the ASCII character table.
When working with ASCII characters, you can get the...
Type: Posts; User: Norm
Please explain what "isn't working" means?
Do you understand that the char '2' does NOT have an int value of 2? See the ASCII character table.
When working with ASCII characters, you can get the...
I think the String class and the Integer class have methods for converting an int to a String.
How is the number read into the program? If as a String, you could use the String class methods to get at any of the characters/digits in the String.