AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Escape sequences java1/1/2024 \b \t \n \r \" \' \\ Meaning backspace tab newline carriage return double quote single quote backslash See Roses.java What if we wanted to print a double quote character? The following line would confuse the compiler because it would interpret the second quote as the end of the string ("I said "Hello" to you.") An escape sequence is a series of characters that represents a special character An escape sequence begins with a backslash character (\), which indicates that the character(s) that follow should be treated in a special way ("I said \"Hello\" to you.") ΔΆ Escape Sequences Some Java escape sequences: See Roses.java
0 Comments
Read More
Leave a Reply. |