3 ms·
These days hello world in Java is just: ```void main() {print("hello world"}``` And you can skip the compile step as well and run it with just `java yourFile.J
by MichaelNolan 2y ago
These days hello world in Java is just:
```void main() {print("hello world"}``` And you can skip the compile step as well and run it with just `java yourFile.Java`
Since JEP 495 they have made "simple programs" very simple.
- qwertox 2y agoyes. main() is the room and print("hello world") the bed. with the castle I'm referring to the whole myriad of things that must be done to be able to compile this. But, as I said, at least drop in a library, possibly via Gradle.