Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: char to decimal Date: Thu, 05 May 2011 07:03:46 -0400 Organization: albasani.net Lines: 19 Message-ID: References: <92ea64F3avU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net cL9Ytv7hKsF1Vm5uLaO7o6KN8zDf6AiS0QqoxmObzThoT3/Ld8ylKepMBvUGDIl8DnqJQbSJhf1q56795oIAew== NNTP-Posting-Date: Thu, 5 May 2011 11:02:29 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="eaHp+iXiqSm1TOgpb/jz3bptAO8Xl3q8lphqnY4es268TagEgCcXu+WzUdItAtuItw+2DjC+IiJllYniQsLYoT1wvORnC0Rdz22mIsGZf/FDGwX9v1HyCMpO9cIUfUr3"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: Cancel-Lock: sha1:tywPuSQTZ1/c+dcpMr1+W3dLOjo= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3551 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. There's nothing funny about that choice at all. As you well know, having been down this road before. -- Lew Awaiting the inevitable now.