• ExLisperA
    link
    fedilink
    arrow-up
    5
    ·
    1 day ago

    Actually, in Java 24 it’s:

    void main() { println("Hello World"); }

    • Akagigahara@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      23 hours ago

      Oh that’s interesting. It kinda reminds me of the C# top level statements feature.

      This still creates the function main in the normal way, right?