update Java solutions