[thelist] java syntax for strings

Patrick Berry pberry at piratehaven.org
Sun Apr 1 11:01:44 CDT 2001

>>> Cristian Secara had the thought that... <<<

> If there is a need to display a string and if the " character is
> included in that string and must be displayed as is, the " should be
> preceded by \ character.
> But what about the / symbol ? Is this also required to be preceded by
> the \ character ?
> What other ASCII characters are included in this category ?
> Thank you.
> Best wishes,
> 	Cristi

/ is fine
? is fine
If you want to print a \ character, you simply escape it like so:
String s = "\\";

But you can get the complete (but not very large) reference here:



<tip type="IE bugs">
   Avoid using numbers in image name attributes in IE.
   <img name="guy1" src="..."> --> Bad
   <img name="guyone" src="..."> --> Better
   I can't tell you why, I just know it bit me in the ass once...

"If everyone were to convert to Shinto tomorrow, I would start ridiculing that
instead.  Hope fully that doesn't happen, because there is a wealth of
comedy inherent in Christianity." -- George Wambaugh

More information about the thelist mailing list