News for hackers. Stuff that matters.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by warmfuzzykitten on Wednesday August 24, 2011 @11:17AM (#2921018)
I tried to run this:

public class Foo { public static void main(String[] args) { System.out.println("foo"); } }

And got an error "class Foo should be in a file named Foo.java". Sweet!

Syntax highlighting doesn't seem to do anything. Isn't it a little grand to be calling this an IDE?

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by swGooF on Wednesday August 24, 2011 @12:12PM (#2921251)
Don't specify the class as public. Then you can name it whatever you want.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by reverend_gonzo on Wednesday August 24, 2011 @11:55AM (#2921174)
If you name the class 'Main' it works fine.

They have an "insert template" button which kind of clarifies that.