public void removeValueFromDomain(Variable var,Object value){
  Domain currDomain=getDomain(var);
  List<Object> values=new ArrayList<Object>(currDomain.size());
  for (  Object v : currDomain)   if (!v.equals(value))   values.add(v);
  setDomain(var,new Domain(values));
}

public void removeValueFromDomain ( Variable var , Object value ) { Domain currDomain = getDomain ( var ) ; List < Object > values = new ArrayList < Object > ( currDomain . size ( ) ) ; for ( Object v : currDomain ) if ( ! v . equals ( value ) ) values . add ( v ) ; setDomain ( var , new Domain ( values ) ) ; }
replaces the domain of the specified variable by new domain , which contains all values of the old domain except the specified value .
