Functional experiments in Java