homework of java for perypery