Literals and Escape Sequence
Literal
Literal: a fixed value that is written directly in code
stay constant throughout the program
Numberal literal
ex) 10
String literal
ex) “I am a string!”
Printing String Literal
System.out.PrintInSystem.out.PrintPrintIn
moves the cursor to a new line after printing
stays on the same line after printing
Escape Sequence
Escaple Sequence: allows to include special character and actions in String literals
\"enables to include quotation marks in a String
\ncreates a line break in the middel of a String
\tInserts a tab space
\\enables to include a backslash in a String