My second attempt at learning java