My java codes