Example of how to use FunctionalJ in a Maven project.
You basically need to add the required dependencies ...
<dependency>
<groupId>functionalj</groupId>
<artifactId>functionalj-core</artifactId>
<version>0.5.5.0</version>
</dependency>
See the full code here: pom.xml