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
ESXi 4.0 - virtual machine sees only one CPU
sandboxie - get rid of bad data in sandbox
truncating table and updating from another table converting varchar to int and datetime
moving NC indexes to another filegroup
Can an iPad connect to a Windows Server VPN?
VBSCript
VB.NET 2008 Get resource file as IO.Stream
Server 2008/Exchange 2010 Scheduled Task: Exchange Shell Script Not working
Access Report - Totalling group header calculation
two ethernet to one motherboard, each ethernet is connected with a different isp. combination is needed