Inspired by a recent 196 post

you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 7 months ago

Java has changed a lot since Java 8. Here's a 3-line HelloWorld.java compatible with Java 21+:

void main() {
    System.out.println("Hello, World!");
}
  • source
  • parent