My java code