By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,648 Members | 1,528 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,648 IT Pros & Developers. It's quick & easy.

Using asc() and chr() in java

P: 1
> How do I use asc() and chr() in java?
> System.out.println((int)'A');
> System.out.println((char)65);

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

> System.out.println((int)s);
> System.out.println((char)n);

(I sure wish this site allowed "REPLY" rather than "ASK A NEW QUESTION". Ugh.)
Jul 2 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 10K+
P: 12,421
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.
Jul 3 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.