Monday, May 4, 2020

Java Preview Features

Today I went to write some Java and test out the preview features. It wasn't as easy to use them as I thought it'd be. I normally use Netbeans. Don't ask. I use a lot of different IDEs but quickly realized yeah, JDK 14 and the preview features don't work in 11.3 at all. So here's how to get it working in InntelliJ IDEA.

1. Go to File and choose Project Stucture

2. From here set the "Project language level" to 14 so you can write some records and text blocks.