My 1st code using Java but for some reason it doesn't fully run