When you want to use Pi4J in your project, you should definitely check out the Pi4J website where you can find a lot of information and many examples! For example, for a minimal example to blink a LED ...
Abstract: In this paper an approach for the transparent use of real-time Java in control and automation is described. The proposed approach, which is in the context of the model integrated ...