when I declare chars,ex: char c=1; ,is it not neccessary that I quote the value with single quotes whether the value is an integer or a letter. char c='1'; char c=1; what is the differce here.
Marilyn de Queiroz
Joined: Jul 22, 2000
I suggest you try writing a tiny program that sets char c1='1' and char c2 = 1 and then does a Systen.out.println( "c1 = " + c1 + " c2 = " + c2 ) and let us know the results. [ July 22, 2004: Message edited by: Marilyn de Queiroz ]
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Dec 10, 2001
As a slightly tangential note, I reference http://www.asciitable.com when I'm curious for the occasional ASCII (character) value.