Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java 1.4.2: Iterator cannot be resolved... Why??????

807580Jun 6 2010 — edited Jun 6 2010
Hello 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???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2010
Added on Jun 6 2010
4 comments
3,451 views