Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Special Characters literals

Tue Aug 14, 2007 5:06 pm

If you are using the following function to print :
Code:
System.out.println(" ");

And you want to print special characters like the double quotes and the backslash ,you will use the following literals :

Code:
double quotes       \"
single quote  \'
backslash   \\
newline  \n
tab       \t
backspace  \b
return    \r
from feed  \f


I hope it is useful topic :huh:



Post a reply
  Related Posts  to : Special Characters literals
 How to remove special characters from a string in Java?     -  
 URL Characters and URL Encoding Values     -  
 Number of Occurrences of characters in a string     -  
 Unicode, ASCII, UTF-16, and UTF-8 characters in java     -  
 continuously calculates the number of characters existing     -  
 Program to make a pyramid of characters based on input     -  
 How to save in a file the ASCII Characters? Like "☺"     -  

Topic Tags

Java Basics