Posted January 07, 2013
if (niniendowarrior.equals("Smart") == true)
throw new Exception("WTF!");
:D
if (niniendowarrior.equals("Smart") == false)
System.out.println("Hello fool!");
else
System.out.println("Test was wrong, please restart program");
throw new Exception("WTF!");
:D
niniendowarrior: He did say Warhammer. Not specifically 40,000. :D I also happened to enjoy Mark of Chaos.
I didn't realize you wanted to do:
javac HelloWorld.java
java HelloWorld.class
all day long. :D
LOL
ThomasGoG: private String niniendowarrior = "Smart"; I didn't realize you wanted to do:
javac HelloWorld.java
java HelloWorld.class
all day long. :D
LOL
if (niniendowarrior.equals("Smart") == false)
System.out.println("Hello fool!");
else
System.out.println("Test was wrong, please restart program");