Isn't this one of the AP Comp Sci questions? If so, most people here won't be able to help you out until you give links to the relevant documentation (jdoc).