Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: char to decimal Followup-To: comp.lang.java.programmer Date: Thu, 05 May 2011 20:03:38 +1200 Organization: Geek Central Lines: 11 Message-ID: References: <92ea64F3avU1@mid.individual.net> NNTP-Posting-Host: 118-92-95-246.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: lust.ihug.co.nz 1304582618 6224 118.92.95.246 (5 May 2011 08:03:38 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Thu, 5 May 2011 08:03:38 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3545 In message , 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.