Hacker News new | ask | show | jobs
by kaamkiya 583 days 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!

1 comments

You 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