return setDimension(new Integer(dim.intValue()+1));
return dimension++;
public Number incrementDimension(Axis axis) {  Number dim = getDimension();  if (dim.intValue()==0) {  //add first dimension    data.add(null);    data.add(null);    return  setDimension(new Integer(1));  }  if (dim.intValue() == 1) {  //add second dimension    int length = axis.getLength();    for (int i = 2; i < 2*length; i++)      data.add(i,null);  }  else{  //dimension >= 2    List oldData = data;    int length = axis.getLength();    data = Collections.synchronizedList(new ArrayList(length));    data.add(0,oldData);    for (int i = 1; i < length; i++)      data.add(i,null);  }  return setDimension(new Integer(dim.intValue()+1));}