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
Native VLAN mismatch
taking backup edge server 2007 sp1
Tutorial needed on passing a value from a sub-report to the report header?
Size JScrollPane correctly
Avaya CMS reports automation
C# - Problem in closing application form
How to install HP 3505 printer 64 bit driver on windows 2003 server 32 bit
Save files to a specified folder
MySQL Query Error: Column count doesn't match value count at row 1
SQL Statement is displayed instead of data