Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 2 个月前Python vs. Javash.itjust.worksvideomessage-square39linkfedilinkarrow-up1159
arrow-up1159videoPython vs. Javash.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · 2 个月前message-square39linkfedilink
minus-squarethenextguy@lemmy.worldlinkfedilinkarrow-up43·2 个月前Actually… since around Java 21, it’s just void main() { println("Hello World"); } https://blog.jetbrains.com/idea/2024/02/helloworld-and-main-meet-minimalistic/#class-‘helloworld-before-and-after-java-21
minus-squareSolemarc@lemmy.worldlinkfedilinkarrow-up10·2 个月前I vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?
minus-squarebigboismith@lemmy.worldlinkfedilinkarrow-up5·2 个月前Printing to console is often only used for toy code anyway.
minus-squareJADEx@programming.devlinkfedilinkarrow-up1·2 个月前In more detail, this feature was included as a preview in Java 21 and officially adopted in Java 25.
Actually… since around Java 21, it’s just
https://blog.jetbrains.com/idea/2024/02/helloworld-and-main-meet-minimalistic/#class-‘helloworld-before-and-after-java-21
I vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?
Printing to console is often only used for toy code anyway.
Wait, how do you debug your code?
… with a debugger
Meh
In more detail, this feature was included as a preview in Java 21 and officially adopted in Java 25.