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
Limit visible words asp.net
sqlserver.exe is RAM greedy.
Adobe Acrobat 7 printer on Windows 7 64bit doesn't install
Apply module to article linked via front page
Email Image from Byte Array
PHP in Joomla
Copy what user types in a text filed in to a hidden field
WSUS clients not reporting
restoring deleted files in u3 smart flash drive
templates for creating company website - with logn and merchan function