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

Technology

73534 readers
2944 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 news or articles.
  3. Be excellent to each other!
  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, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years 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 32 points 2 years ago (6 children)

PUBLIC STATIC VOID MAIN STRING ARGS

[–] onlinepersona@programming.dev 10 points 2 years ago

INT MAIN INT ARGC CHAR POINTER ARGV ARRAY BODY

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

Say it with me:

PUBLIC STATIC VOID MAIN STRING ARGS

[–] ultra@feddit.ro 5 points 2 years ago

PUBLIC STATIC VOID MAIN STRING ARGS

[–] floridaman@lemmy.blahaj.zone 3 points 2 years ago

you know how it goes

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

As of java 21, you can actually just use:

void main()

[–] morrowind@lemmy.ml 2 points 2 years ago

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

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

[–] dlrht@lemm.ee 1 points 2 years ago

This had me burst out in laughter real hard omg