Package name does not correspond to the file path – IntelliJ

Judging from the directory structure, you have two packages client and server, but the code expects packages badugi.client and badugi.server. Here is a way to fix it: Position your cursor to the underlined package statement (package badugi.server) Hit ALT + ENTER Select option Move to package badugi.server. This will automatically fix your directory structure to match the declared package … Read more

What does the arrow operator, ‘->’, do in Java?

That’s part of the syntax of the new lambda expressions, to be introduced in Java 8. There are a couple of online tutorials to get the hang of it, here’s a link to one. Basically, the -> separates the parameters (left-side) from the implementation (right side). The general syntax for using lambda expressions is (Parameters) -> { Body } where … Read more

Lombok and Maven

This should work as is, and has nothing to do with IntelliJ idea. But I would: make sure the @Data annotation is the lombok one remove the repository definition (maven central is fine) use a recent lombok version (1.16.0 as of this writing) rebuild (mvn clean package) I think the lombok jar is not found by maven in … Read more