News for hackers. Stuff that matters.
Re:A book that teaches how to code in modern Java by kaamkiya on Sunday November 10, 2024 @09:28AM (#42100416)
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!

Re:A book that teaches how to code in modern Java by emccue on Sunday November 10, 2024 @09:37AM (#42100467)
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