Java Reference
In-Depth Information
8. name age height
Archie 17 5'9"
Betty 17 5'6"
Jughead 16 6'
9. Shaq is 7'1
The string "" is an empty message.
\'""
10. a b c
\\
'
"""
C:
in he downward spiral
11. Dear "DoubleSlash" magazine,
Your publication confuses me. Is it
a \\ slash or a //// slash?
Sincerely,
Susan "Suzy" Smith
12. System.out.println("\"Several slashes are sometimes seen,\"");
System.out.println("said Sally. \"I've said so.\" See?");
System.out.println("\\ / \\\\ // \\\\\\ ///");
13. System.out.println("This is a test of your");
System.out.println("knowledge of \"quotes\" used");
System.out.println("in 'string literals.'");
System.out.println();
System.out.println("You're bound to \"get it right\"");
System.out.println("if you read the section on");
System.out.println("''quotes.''");
14. System.out.println("/ \\ // \\\\ /// \\\\\\");
15. System.out.println("Twas brillig and the ");
System.out.println(" slithy toves did gyre and");
System.out.println("gimble");
System.out.println();
System.out.println("in the wabe.");
16.
The keyword class is missing on line 1.
A semicolon is missing on line 3.
The word Println should not be capitalized on line 4.
Search WWH ::




Custom Search