added 4th homework of java