chart[i][j].numLevels = 0; int[] levelCounts = chart[i][j].numItemsAtLevel;
((Entry)chart[i][j]).numLevels = 0; int[] levelCounts = ((Entry)chart[i][j]).numItemsAtLevel;
  public void clear() {    totalItems = 0;    if (debugNumItemsGenerated) {      totalItemsGenerated = 0;    }    if (debugNumPrunedItems) {      numPrePruned = numPruned = 0;    }    for (int i = 0; i < size; i++)      for (int j = i; j < size; j++)	if (chart[i][j] == null)	  chart[i][j] = new Entry();	else {	  chart[i][j].clear();	  chart[i][j].numLevels = 0;	  int[] levelCounts = chart[i][j].numItemsAtLevel;	  for (int k = 0; k < levelCounts.length; k++)	    levelCounts[k] = 0;	}  }