Java beginner notes