Skip to content

Instantly share code, notes, and snippets.

@charlesreid1
Created April 5, 2017 17:51
Show Gist options
  • Save charlesreid1/7324ab338d50120f79bcdd4ced8fada2 to your computer and use it in GitHub Desktop.
Save charlesreid1/7324ab338d50120f79bcdd4ced8fada2 to your computer and use it in GitHub Desktop.
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