My java code practise