added java homework

added java homework