Created
August 27, 2021 04:50
-
-
Save kyleburton/84c6a9430030efb42bf45ced7064588f to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
* 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