With the snippet below, I'm trying to process a spreadsheet, with a twist on the need to exclude special columns. I know how I do this, adding exceptions to the ArrayList and processing the list on each and every increment over the current columns of the row is perverse, but you know how to do it.
However, I get a title error, which, it seems to me, will never happen. I just iterate over ArrayList and compare without changing anything. Where is the mistake? Is there a better way to handle the exception list?
ArrayList noProcess = new ArrayList(); Iterator itr00 = noProcess.iterator(); Iterator itr01 = noProcess.iterator(); noProcess.add(new Integer("5")); noProcess.add(new Integer("18")); .... boolean include=true; for(int i=0;i<archive.length;i++){ for (int j = 0; j < archive[i].length; j++) { while (itr00.hasNext()) { if (j == ( (Integer) itr00.next()).intValue()) include = false; } if (include) {...
source share