study code of HerbertSchildt book java beginner's guide third ed.