this post was submitted on 25 Nov 2023
208 points (97.3% liked)

Technology

59179 readers
2145 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

An After-School Program Teaches Teens Java and Python::The students also learn how to design board games and video games

you are viewing a single comment's thread
view the rest of the comments
[–] Linkerbaan@lemmy.world 33 points 11 months ago (6 children)

PUBLIC STATIC VOID MAIN STRING ARGS

[–] WindowsEnjoyer@sh.itjust.works 10 points 11 months ago (1 children)

Say it with me:

PUBLIC STATIC VOID MAIN STRING ARGS

[–] ultra@feddit.ro 5 points 11 months ago

PUBLIC STATIC VOID MAIN STRING ARGS

[–] onlinepersona@programming.dev 10 points 11 months ago

INT MAIN INT ARGC CHAR POINTER ARGV ARRAY BODY

[–] floridaman@lemmy.blahaj.zone 3 points 11 months ago

you know how it goes

[–] bionicjoey@lemmy.ca 2 points 11 months ago (1 children)

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 -2 points 11 months ago (1 children)

Java21 is gonna flip your whole world upside down

[–] bionicjoey@lemmy.ca 1 points 11 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.

[–] eerongal@ttrpg.network 2 points 11 months ago (1 children)

As of java 21, you can actually just use:

void main()

[–] morrowind@lemmy.ml 2 points 11 months ago

You'll definitely get to use Java 21 in whatever job you get.

[–] dlrht@lemm.ee 1 points 11 months ago

This had me burst out in laughter real hard omg