Hi all.
I use
Java 1.5 for a while and i used new-style "for" to operate collections serveral times. But recently I had received a compilation error, and I don't know why.
If I rewrite cycle using old good interators - all works fine.
Here is code:
Code, that works:
Code, that doesn't work:
Compilation error in the line "for (Map.Entry..."
Error: line (148)incompatible types
found : java.lang.Object
required: java.util.Map.Entry
Please, tell me what's wrong. May be it's me, compilator or smth. elese
I use Sun JDK 5.0 Update 3, IntelliJ IDEA 5.0 (build 3467)
Thanks.