CVGalleryGamesPreviewRandomJavaSiteWeb
Site updates - 15/04/2005
  • Updated CSS Preview
  • Shiny new look
  • New Alternate styles coming soon!
9/5/2005 - fixed del.icio.us link

"<char>" Vs '<char>'

When is a char not a char? When it's a String! When anything is enclosed in double quotes (""), it becomes a String. If a char is needed, single quotes are needed instead.

char a='a'; char in single quotes, OK.
char b="b"; gives error: Incompatible type for declaration. Can't convert java.lang.String to char.
NOTE: The Java section is mostly in maintenence mode. I don't have time to work on it right now. Errors will be corrected if pointed out, but they are not actively being searched for. Newer site features, like alternate stylesheets, may cause problems with these pages.