Friday, May 23, 2008

Non-Numerical Literals

Non-Numerical Literals

There are two major non-numerical literals in Java. The first, a character literal, represents a single character surrounded by quotations. Some characters are not so obvious or simply cannot be encased in quotations. That is where character escapes come in. The following post is a list of commonly used escape characters to print the not-so –obvious values:

No comments: