Using asc() and chr() in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • User Account
    New Member
    • Jul 2012
    • 1

    Using asc() and chr() in java

    > How do I use asc() and chr() in java?
    > System.out.prin tln((int)'A');
    > System.out.prin tln((char)65);

    But what if 'A' and 65 are stored in variables... NOT literals?

    > System.out.prin tln((int)s);
    > System.out.prin tln((char)n);

    (I sure wish this site allowed "REPLY" rather than "ASK A NEW QUESTION". Ugh.)
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You can reply to threads. You have to be in the thread you want to reply to. However, don't forget that the forum rules state that you should not bump old threads or hijack threads.

    Comment

    Working...