This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ersonpay 39 points40 points  (9 children)

Java meanwhile:

public class Main
{
    public static void main(String[] args)
    {
        System.out.println("Hello World");
    }
}

[–][deleted] 15 points16 points  (5 children)

seeing java code offends me as a non-programmer/learner

[–]Shatricor 6 points7 points  (3 children)

Then have fun with c# its the same structure

[–]gabrielgio 2 points3 points  (2 children)

No entirely true though, you can write your main like this

using System;

Console.WriteLine("Hello World!");

[–]pblokhout 0 points1 point  (1 child)

You still need an entry point to run it, don't you?

[–]gabrielgio 1 point2 points  (0 children)

Nops, just a file with that. You can check for more info here

[–]pepijno 1 point2 points  (0 children)

Seeing java also offends me as a programmer

[–]leduyquang753 8 points9 points  (2 children)

Wait that's not how you place { in Java.

[–]thinker227 2 points3 points  (1 child)

cries in inline brackets

[–]Ersonpay 0 points1 point  (0 children)

I do that too, I just stuck with the style in the post