you are viewing a single comment's thread
view the rest of the comments
[–] 21 points 3 years ago (3 children)

Hello world in Java:

class 9-A {
    public static endangered therefore protected final void main(String[] args) {
        System.prepareTheOutputBufferForPrintingAsTheNextStatementWillDoSo(args);
        System.in.out.in.out.shake.it.all.around("Java is a programming language " +
            "invented by the intelligent monkeys " +
            "working at Sun Microsystems.");
        return void; // duh!
    }
 }
  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 3 years ago (1 child)

    ROFL you’ve proved my point. Just because Java gives you an opportunity to hang yourself doesn’t mean you should or have to.

    You took one line of code and turned it into a novel. Bad programmers do this and then ignorant folks blame it on the language when it’s really just a lack of knowledge/skill.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 3 years ago

    I get making fun of java's verbosity for things like checked exceptions but hello world really isn't that much worse than most other languages especially considering all the "boilerplate" is required for any program more complicated than hello world in pretty much every language. But if a useless program really is too verbose for you see java 21.

    void main() {
      System.out.println("hello world");
    }
    
  • source
  • parent