Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello world in Java with Unnamed classes and Instance main Methods feature (Java 21 and higher, in preview mode). #1625

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheEliteGentleman
Copy link

@TheEliteGentleman TheEliteGentleman commented Oct 20, 2024

To run:

java --enable-preview --source X j\Java21.java

Where X is your JDK major version number (must be version 21 or higher). The value must be numeric.

Adding a language

  • The code displays "Hello World" (tio.run may help for testing)
  • I have no association with the language
  • There are no copyright issues with this code
  • The language has not been added prior to this pull request
  • I have updated the README

Link to programming language:

…ature (Java 21 and higher, in preview mode).
@TheEliteGentleman TheEliteGentleman changed the title Hello world in Java with Unnamed classes and Instance main Methods feaature (Java 21 and higher, in preview mode). Hello world in Java with Unnamed classes and Instance main Methods feature (Java 21 and higher, in preview mode). Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant