Skip to content

Instantly share code, notes, and snippets.

@justgage
Last active August 29, 2015 14:00
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 justgage/a772e20b1007766e8009 to your computer and use it in GitHub Desktop.
Save justgage/a772e20b1007766e8009 to your computer and use it in GitHub Desktop.
Opinionated.java
class Opinionated {
public static void main(String[] args) {
int i = 0;
if (args.length > 0) {
for(String arg:args) {
i++;
System.out.print(i + ": " + arg);
if (arg.equals("byui")) {
System.out.print(" << a school of which I belong");
}
if (arg.equals("java")) {
System.out.print(" << a language which I must learn.");
}
if (arg.equals("foo")) {
System.out.print(" << a word that is overused in examples.");
}
if (arg.equals("cool")) {
System.out.print(" << when something is below room tempeture but not cold.");
}
if (arg.equals("lol")) {
System.out.print(" << a bad word for an english paper.");
}
if (arg.equals("Gage")) {
System.out.print(" << the coolest programer ever");
}
if (arg.equals("gage")) {
System.out.print(" << do you really think that my name isn't a proper noun.");
}
System.out.print("\n");
}
} else {
System.out.println("no arguments to play with :(");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment