Say it with me:
Comment on An After-School Program Teaches Teens Java and Python
Linkerbaan@lemmy.world 10 months ago
PUBLIC STATIC VOID MAIN STRING ARGS
WindowsEnjoyer@sh.itjust.works 10 months ago
ultra@feddit.ro 10 months ago
PUBLIC STATIC VOID MAIN STRING ARGS
bionicjoey@lemmy.ca 10 months ago
It feels like some arcane spell when you first learn it, but once you are familiar with Java, each token in that declaration feels totally justified. Like yeah, the args are an array of strings. Yeah, the main function needs to be static and public. Yeah, it doesn’t return anything inside the JVM, so it’s void.
Linkerbaan@lemmy.world 10 months ago
Java21 is gonna flip your whole world upside down
bionicjoey@lemmy.ca 10 months ago
Yeah my brain still thinks about Java in Java 8 because that was primarily what I worked on when I was a dev.
floridaman@lemmy.blahaj.zone 10 months ago
you know how it goes
eerongal@ttrpg.network 10 months ago
As of java 21, you can actually just use:
void main()
dlrht@lemm.ee 10 months ago
This had me burst out in laughter real hard omg
onlinepersona@programming.dev 10 months ago
INT MAIN INT ARGC CHAR POINTER ARGV ARRAY BODY