Simple JAVA Console app practice