Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!newsfeed.utanet.at!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Newsgroups: comp.lang.java.programmer From: Andreas Leitgeb Subject: Re: char to decimal References: <92ea64F3avU1@mid.individual.net> Reply-To: avl@logic.at User-Agent: slrn/pre0.9.9-111 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Date: 05 May 2011 11:18:54 GMT Lines: 14 NNTP-Posting-Host: gamma.logic.tuwien.ac.at X-Trace: 1304594334 tunews.univie.ac.at 60386 128.130.175.3 X-Complaints-To: abuse@tuwien.ac.at Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3554 Lew wrote: > Lawrence D'Oliveiro wrote: >> Ian Shef wrote: >>> A char is much like an int except that: >>> It has 16 bits instead of 32. >>> It is unsigned, with a value from 0 through 65535. >>> It gets special handling in some places, such as by System.out.println. >>> The special handling by System.out.println can be avoided by casting to an >>> int. >> Funny, they could do all this for char, but not for boolean. > Booleans are not numbers. But characters are. So, 'a' is just as naturally 97 as true isn't 1