Hi!
I'm purposely targeting Java OS 1.4.2
I'm trying to use an iterator combined with apache's POI to read an excel spreadsheet.
The code runs perfectly in java 1.5, but in the 1.4.2 version I get the error listed in the question subject.
the code is:
Iterator<HSSFRow> myIter = null;
*Updated - Removed the null declaration, and immediately set it to the collection. Still getting the same error! "Iterator cannot be resolved to a type" (Iterator is an abstract type). This error occurs before I try to get the values from the iterator!
Iterator itRows = hsSheet.rowIterator();
- I also have imported the HSSFRow variable
it breaks on that line of code, which is clearly at the beginning of the application. I dont understand what needs to be done to correct this issue. Please let me know if you have any insight!