Java - Iterator: "Syntax error, parameterized types are only available if source level is 5.0"
- by Helpme
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 myIter = null;
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!