Microsoft
Software
Hardware
Network
Question : Conforming to new Java syntax
I am working on some code that looks like this...
1) Map<Integer, ColumnData> columnValues = data.getColumnValues();
2) Iterator it = columnValues.entrySet().it
erator();
3) while (it.hasNext()) {
4) Map.Entry<Integer, ColumnData> value = (Map.Entry)it.next();
.........
I am getting the following warnings
on line 2) Iterator is a raw type. References to generic type Iterator<E> should be parameterized
on line 4) Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
the code works fine....I just want to clean up the warnings....how do I do that and conform to Java syntax.
Answer : Conforming to new Java syntax
Iterator:
1:
Iterator<Map.Entry<Integer, ColumnnData>> it = columnValues.entrySet().iterator();
Random Solutions
Which is the BEST to secure LAN : WEP, WPA or WPA2?
windows 7 watch on tv
Hide certain Drupal content per Brower type.
SQL Query Problem
morefunc 5.05 functions sometimes stay as text rather than producing a result
Help Virtualizing Server Rooms
Exchange 2010 issues
Windows Update Blocked
How do I make buttons look better in VB.NET?
dc functions as root & enterprise crashed; what to do about root ca; new or try to backup