Skip to content

Instantly share code, notes, and snippets.

@orekyuu
Created January 4, 2017 08:01
Show Gist options
  • Save orekyuu/3471466d59c9d211ac2ea553568d6321 to your computer and use it in GitHub Desktop.
Save orekyuu/3471466d59c9d211ac2ea553568d6321 to your computer and use it in GitHub Desktop.
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