Search:

Type: Posts; User: dlorde

Search: Search took 0.11 seconds.

  1. Thread: String to Int

    by dlorde
    Replies
    16
    Views
    1,916

    Re: String to Int

    :) nice one - base 26 does have some uses after all!
  2. Thread: String to Int

    by dlorde
    Replies
    16
    Views
    1,916

    Re: String to Int

    '72, 73' is not an int. The compiler is not a mind-reader - you can get the UNICODE value of each character (equivalent to ASCII for the latin alphabet) by casting to an int as Junky shows above....
  3. Thread: String to Int

    by dlorde
    Replies
    16
    Views
    1,916

    Re: String to Int

    The Integer.valueOf method expects a String representation of a number, e.g. "45". It doesn't know the int value of "HI", neither do I. What is the int value you think "HI" should have?
Results 1 to 3 of 3