Sunday, May 25, 2008

Non-Numerical Literals 2

\b Backspace
\f Form Feed
\n New line
\t Tab
\ Backslash
\’ Single quote
\” Double quote

You worked with string literal, the second major non-numerical literals, to print statements on the screen in the example in the last chapter. String literals are merely collections of character literals. Java stores string literals in a more complex type known as string object.

No comments: