Some java code