My Java Code