The Java programming language has changed massively since Java 7, after introduction of the keyword var, records, switch expressions, and many more syntax changes. Modern Java feels quite differently and allows new idioms. Time to look into the language changes of nearly one decade, to get an idea how to write modern code style, and to express your ideas more concise. Also, in future we will have even better means to express ourselfs in terms of syntax instead of terms of API or architecture: Valhalla and Loom will further move Java into a readable and well-performing language.
Java Guru with +30 years of experience in professional software development. I travelled the whole world of IT, starting from Sinclair's great ZX Spectrum 48K, Commodore's 4040, over S/370, PCs since legendary XT, CP/M, VM/ESA, DOS, Windows (remember 3.1?), OS/2 WARP, Linux to Android and iOS... and still coding is my passion, and Java is my favourite drug!