/**Copyright(c)2000DavidFlanagan.Allrightsreserved.*ThiscodeisfromthebookJavaExamplesinaNutshell,2ndEdition.*ItisprovidedAS-IS,WITHOUTANYWARRANTYeitherexpressedorimplied.*Youmaystudy,use,andmodifyitforanynon-commercialpurpose.*Youmaydistribut