3 ms·
I really liked your book and plan to use it when I need to teach people how to code, so thanks a ton. > Fixing Mechanical issues I tried running `*.java` file
by kaamkiya 2y ago
I really liked your book and plan to use it when I need to teach people how to code, so thanks a ton.
> Fixing Mechanical issues
I tried running `*.java` files without classes (so just `void main`) and I got this error:
```
Hello.java:1: error: class, interface, or enum expected
void main() {
^
```
> Be a template
It's a great one.
Thank you!
- emccue 2y agoYou need to use --enable-preview for now. When thats stable you won't need to. I'm not really putting too much effort to call attention to that rn, i'd rather wait