Say it with me:
Comment on An After-School Program Teaches Teens Java and Python
Linkerbaan@lemmy.world 1 year ago
PUBLIC STATIC VOID MAIN STRING ARGS
WindowsEnjoyer@sh.itjust.works 1 year ago
ultra@feddit.ro 1 year ago
PUBLIC STATIC VOID MAIN STRING ARGS
bionicjoey@lemmy.ca 1 year 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 1 year ago
Java21 is gonna flip your whole world upside down
bionicjoey@lemmy.ca 1 year 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 1 year ago
you know how it goes
eerongal@ttrpg.network 1 year ago
As of java 21, you can actually just use:
void main()
dlrht@lemm.ee 1 year ago
This had me burst out in laughter real hard omg
onlinepersona@programming.dev 1 year ago
INT MAIN INT ARGC CHAR POINTER ARGV ARRAY BODY