Page 116 - AP Computer Science A, 7th edition
P. 116

  Escape Sequence
Meaning
  \n \” \\
Here are some examples:
newline double quote backslash
  System.out.println("Welcome to\na new line");
prints
Welcome to a new line
The statement
System.out.println("He is known as \"Hothead Harry\".");
prints
He is known as "Hothead Harry".
The statement
System.out.println("The file path is d:\\myFiles\\..");
prints
The file path is d:\myFiles\..
CONTROLSTRUCTURES
Control structures are the mechanism by which you make the statements of a program run in a nonsequential order. There are two general types: decision making and iteration.
  
















































































   114   115   116   117   118