public void checkIndicesList(MyIdxList list,int startidx,int endidx) throws Exception {
  boolean found;
  ListNode node;
  for (int i=0; i < list.size(); i++) {
    node=list.get(i);
    found=false;
    for (int j=startidx; j <= endidx; j++) {
      if (node.idx == m_InstList[j]) {
        found=true;
        break;
      }
    }
    if (!found) {
      throw new Exception("Error: Element " + node.idx + " of the list not in "+ "the array."+ "\nArray: "+ printInsts(startidx,endidx)+ "\nList: "+ printList(list));
    }
  }
}

public void checkIndicesList ( MyIdxList list , int startidx , int endidx ) throws Exception { boolean found ; ListNode node ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { node = list . get ( i ) ; found = false ; for ( int j = startidx ; j <= endidx ; j ++ ) { if ( node . idx == m_InstList [ j ] ) { found = true ; break ; } } if ( ! found ) { throw new Exception ( "Error: Element " + node . idx + " of the list not in " + "the array." + "\nArray: " + printInsts ( startidx , endidx ) + "\nList: " + printList ( list ) ) ; } } }
checks whether if the points in an index list are in some specified of the master index array .
