Last active
August 29, 2015 14:00
-
-
Save justgage/a772e20b1007766e8009 to your computer and use it in GitHub Desktop.
Opinionated.java
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
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