Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    8
    Views
    1,351

    Re: Referring to specific numbers in an integer?

    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...
  2. Replies
    8
    Views
    1,351

    Re: Referring to specific numbers in an integer?

    I think the String class and the Integer class have methods for converting an int to a String.
  3. Replies
    8
    Views
    1,351

    Re: Referring to specific numbers in an integer?

    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.
Results 1 to 3 of 3