Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ Java is my favorite language but jesus christ it's hilarious how bad a golfing language it is haha \$\endgroup\$ Commented Aug 1, 2016 at 11:44
  • 4
    \$\begingroup\$ @AlanTuning Indeed. xD I work with Java at work, and it's fun to code-golf in Java. You will NEVER be able to win a code-golf challenge here using Java, but it's still fun to write the Java code as short as possible. \$\endgroup\$ Commented Aug 1, 2016 at 12:02
  • 2
    \$\begingroup\$ well, you can just void f()throws Exception{new java.io.PrintWriter("x").print("Hello World");} \$\endgroup\$ Commented Aug 1, 2016 at 15:13
  • \$\begingroup\$ java.io.Writer p=new java.io.PrintWriter saves you some more characters. \$\endgroup\$ Commented Aug 1, 2016 at 18:39
  • \$\begingroup\$ @cliffroot Hmm, I tried that initially, but it didn't seem to write anything to disk. Will try again tomorrow, currently I don't have an IDE and file I/O doesn't work in ideone. \$\endgroup\$ Commented Aug 1, 2016 at 19:26