-
HashMap problem
public HashMap extractOids(Mib mib){
HashMap map = new HashMap();
Iterator iter = mib.getAllSymbols().iterator();
MibSymbol symbol;
MibValue value;
while (iter.hasNext()) {
symbol = (MibSymbol) iter.next();
value = extractOid(symbol);
if (value !=null){
map.put(symbol.getName(),value);
}
}
return map;
}
How do i call the method above and handle the map type return properly? Thanks
-
Re: HashMap problem
Call it, passing in a Mib parameter.
Handle the HashMap by assigning the return value to a HashMap object.
Code:
HashMap map = extractOids(mibObject);
Not sure what else you expect anyone to say.