Added Java solutions