code: public static IElectronContainer[] getElectronContainerArray(List<IElectronContainer> list) {
          IElectronContainer[] ret = new IElectronContainer[list.size()];
          for (int i = 0; i < ret.length; ++i)
              ret[i] = list.get(i);
          return ret;
      }
docs: Constructs an array of Atom objects from a List of Atom objects.
  @param  list The original List.
  @return The array of Atom objects.