Java code test