Java 1.4.2: Iterator cannot be resolved... Why??????
807580Jun 6 2010 — edited Jun 6 2010Hello fellow java developers!
I'm using java 1.4.2 - a requirement for this project.
The issue that I'm running into is when I declare an Iterator for use in the program.
The code is simple, but fails miserably.
Iterator itRows = hsSheet.rowIterator(); // this is a function from apache POI that is supposed to return an iterator
The issue is clear enough. "Iterator cannot be resolved to a type". But seems strange. If I try to declare the iterator type like this:
Iterator<HSSFRow> itRows = hsSheet.rowIterator(); // this tells me that "paramaterized types are only available if the source is 5.0 or above - 1.4.2 is required.
Any ideas???