Playing with some java code