homework of java class in zju 2014-fall