4
ruhe
6y

package bar;

public class Foo {
public static void main(){
System.out.println("Hello, World!");
}
}

I still wonder why I didn't start with Python, print('Hello, World') is a god damn one-liner

Comments
  • 3
    Both are equally shit.
  • 0
    I dont see any problem at all with the java code, maybe instead of system something like Console.writeLine would look better though.

    I never understoof why theres so much hate against the main method, especially from JS guys.
    When I look at react boilerplate on the other hand ....
  • 0
    @mojo2012 then can you explain to me why I need a class for that? OOP may be a good thing but for writing Hello, World to stdout - why should such task require a class? That's pretty much the only thing i dislike about java
  • 0
    learn prolog.

    write("Hello world").
  • 0
    @ruhe Because the program is an object.
  • 0
    If you get upset about this then i assume you dont know much java.
  • 0
    @ruhe because java puts consistency first, its an OO kanguage over all.

    And how many one-line programs do u intens to write??
Add Comment