My Java codes