System.out.println will print a line and move the cursor down to the beginning of the next line
To print special characters use the escape sequence which is a symbol after a backslash \ (not forward slash / )
\t is a tab to indent
\" will print a quote symbol
System.out.println("Welcome \"home\" from \t far away"); // will print:
Welcome "home" from far away |
Create your own, original program in a NEW class named Quote that prints a famous quote (including the quotes around it) using print, println, tab, like this:
"Now is the time for all good men to come to the aid of their country"
|
Notice the blank line in between the quote and the author
How do you think you would print a blank line?
Save as quoteYourName.