Created
January 4, 2017 08:01
-
-
Save orekyuu/3471466d59c9d211ac2ea553568d6321 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class Main extends java.util.HashMap<String, Integer> { | |
public static void main(String[] args) throws Exception { | |
if (new Main() == null) {} | |
} | |
Main() throws Exception { | |
if(put("i", 0) == null) {} | |
while (get("i") < 100) { | |
if(put("i", get("i") + 1) == null) {} | |
if (get("i") % 5 == 0 && get("i") % 3 == 0) { | |
if (java.io.PrintStream.class.getMethod("println", String.class).invoke(System.out, "FizzBuzz") != null) {} | |
} else if (get("i") % 3 == 0) { | |
if (java.io.PrintStream.class.getMethod("println", String.class).invoke(System.out, "Fizz") != null) {} | |
} else if(get("i") % 5 == 0) { | |
if (java.io.PrintStream.class.getMethod("println", String.class).invoke(System.out, "Buzz") != null) {} | |
} else { | |
if (java.io.PrintStream.class.getMethod("println", Object.class).invoke(System.out, get("i").toString()) != null) {} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment