Some experiments in Java