Java learning and guidance 2