Created
April 5, 2017 17:51
-
-
Save charlesreid1/7324ab338d50120f79bcdd4ced8fada2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EscapeHelloWorld { | |
public static void main(String[] args) { | |
System.out.println("A well-formed Java program has"); | |
System.out.println("a main method with { and }"); | |
System.out.println("braces.\n"); | |
System.out.println("A system.out.println statement"); | |
System.out.println("has ( and ) and usually a"); | |
System.out.println("String that starts and ends"); | |
System.out.println("with a \" character."); | |
System.out.println("(But we type \\\" instead!)"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment