Update java homework