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

Technology

58061 readers
31 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
[–] [email protected] 33 points 10 months ago (6 children)

PUBLIC STATIC VOID MAIN STRING ARGS

[–] [email protected] 10 points 9 months ago (1 children)

Say it with me:

PUBLIC STATIC VOID MAIN STRING ARGS

[–] [email protected] 5 points 9 months ago

PUBLIC STATIC VOID MAIN STRING ARGS

[–] [email protected] 10 points 9 months ago

INT MAIN INT ARGC CHAR POINTER ARGV ARRAY BODY

[–] [email protected] 3 points 10 months ago

you know how it goes

[–] [email protected] 2 points 9 months ago (1 children)

As of java 21, you can actually just use:

void main()

[–] [email protected] 2 points 9 months ago

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

[–] [email protected] 2 points 9 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.

[–] [email protected] -2 points 9 months ago (1 children)

Java21 is gonna flip your whole world upside down

[–] [email protected] 1 points 9 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.

[–] [email protected] 1 points 9 months ago

This had me burst out in laughter real hard omg