JavaOnline Java compiler, Online Java IDE, and online Java REPL.

Code Java, compile Java, run Java, and host your programs and apps online for free.

loading
Files
  • Main.java
Main.java
1
2
3
4
5
class Main {
  public static void main(String[] args) {
    System.out.println("Hello world!");
  }
}
java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)