private ArrayList createNodeList(int nCount){
  ArrayList nodeList=new ArrayList(nCount);
  for (int i=0; i < nCount; i++) {
    nodeList.add(createNode(i));
  }
  return nodeList;
}

private ArrayList createNodeList ( int nCount ) { ArrayList nodeList = new ArrayList ( nCount ) ; for ( int i = 0 ; i < nCount ; i ++ ) { nodeList . add ( createNode ( i ) ) ; } return nodeList ; }
this functions number of new nodes specified by ncount .
