Modern syntax
Test Java 17-friendly examples and compare them with older Java styles.
Modern Java Practice
Use CodingCool to run Java 17 programs online. Practice modern Java syntax, text blocks, switch expressions, records-style examples, collections, streams, and interview code in the browser.
Open Java 17 CompilerTest Java 17-friendly examples and compare them with older Java styles.
Run arrays, strings, maps, sorting, recursion, streams, and method examples.
Read Java compiler messages in the console and fix errors step by step.
public class Main {
public static void main(String[] args) {
String message = """
Hello from Java 17
""";
System.out.println(message.trim());
}
}