FP KK in Java