Lessons for the java apprentice class