Skip to content

Instantly share code, notes, and snippets.

@kyleburton
Created August 27, 2021 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyleburton/84c6a9430030efb42bf45ced7064588f to your computer and use it in GitHub Desktop.
Save kyleburton/84c6a9430030efb42bf45ced7064588f to your computer and use it in GitHub Desktop.
/*
* Don't cheat!
*
* javac Foo.java && java Foo
*
*/
public class Foo {
public static void main (String [] args) {
System.out.println("option1\n\n");
String [] favorites = {
"this",
"that",
"and",
"the",
"other",
"thing"
};
for (String thing : favorites ) {
System.out.println(thing);
}
System.out.println("\n\noption2\n\n");
System.out.println("this\nthat\nand\nthe\nother\nthing\nand\neven\nmore");
System.out.println("\n\noption3\n\n");
System.out.println("some\n"
+ "things\n"
+ "in\n"
+ "life\n"
+ "are\n"
+ "weirder\n"
+ "than\n"
+ "others\n"
);
System.out.println("\n\nall done!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment