Write, compile, and test Java applications online without installing JDK or configuring PATH variables. Powered by OpenJDK 17 LTS with automatic entry point detection.
// CODEJUMP Online Java Compiler
// Compile and run Java code directly in your browser
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String name = scanner.hasNext() ? scanner.next() : "Developer";
System.out.println("Hello, " + name + "! Welcome to CODEJUMP Java Playground.");
// Java 17 Collections & Stream demonstration
List<Integer> numbers = Arrays.asList(5, 2, 9, 1, 7, 6, 3);
System.out.println("Original List: " + numbers);
List<Integer> sortedEven = numbers.stream()
.filter(n -> n % 2 == 0)
.sorted()
.toList();
System.out.println("Sorted Even Numbers: " + sortedEven);
}
}
CODEJUMP provides OpenJDK 17 LTS, allowing you to use modern Java syntax such as Records, Sealed Classes, Text Blocks, and modern Stream APIs, with forward compatibility for OpenJDK 25.
We recommend naming your main class "Main" with a standard public static void main(String[] args) method. CODEJUMP also supports classes with other names as long as the entry point is clearly declared.
Yes! Supply any required input in the STDIN tab before clicking Run. System.in will read this stream in sequence.
CODEJUMP is optimized for pure Java algorithms, education, interviews, and competitive programming with the complete Java SE Standard Library.