public String createId(Object cell){
  String id=String.valueOf(nextId);
  nextId++;
  return id;
}

public String createId ( Object cell ) { String id = String . valueOf ( nextId ) ; nextId ++ ; return id ; }
creates a new id for the given cell and increments the global counter for creating new ids .
