Skip to content

Instantly share code, notes, and snippets.

@orekyuu
Created January 4, 2017 08:22
Show Gist options
  • Save orekyuu/dd820a9216ce6881a6996f2ad62fe3db to your computer and use it in GitHub Desktop.
Save orekyuu/dd820a9216ce6881a6996f2ad62fe3db 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 (System.out.append("FizzBuzz\n") == null) {}
} else if (get("i") % 3 == 0) {
if (System.out.append("Fizz\n") == null) {}
} else if(get("i") % 5 == 0) {
if (System.out.append("Buzz\n") == null) {}
} else {
if (System.out.append(get("i").toString() + "\n") == null) {}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment