legacy/src/main/java/ucar/nc2/NetcdfFileWriteable.java
public Variable addVariable(String varName, Class componentType, Dimension[] dims) {
    List<Dimension> list = new ArrayList<Dimension>();
    list.addAll(Arrays.asList(dims));
    return addVariable(varName, DataType.getType(componentType, false), list);   // LOOK unsigned
  }
public Variable addVariable(String varName, Class componentType, Dimension[] dims) {
    List<Dimension> list = new ArrayList<Dimension>();
    list.addAll(Arrays.asList(dims));
    return addVariable(varName, DataType.getType(componentType, false), list);   // LOOK unsigned
  }
Add a variable to the file. Must be in define mode.

@param varName       name of Variable, must be unique with the file.
@param componentType type of underlying element: String, double or Double, etc.
@param dims          array of Dimensions for the variable, must already have been added.
@deprecated use addVariable(String varName, DataType dataType, ArrayList dims);
@return the Varible added