List
List
Collections.sort(mValues);
Collections.sort(mKey);
LinkedHashMap
new LinkedHashMap
Iterator
while (valueIt.hasNext()) {
Object val = valueIt.next();
Iterator
while (keyIt.hasNext()) {
Object key = keyIt.next();
String comp1 = uMap.get(key).toString();
String comp2 = val.toString();
if (comp1.equals(comp2)){
uMap.remove(key);
mKey.remove(key);
sortedMap.put((String)key, (String)val);
break;
}
}
}
return sortedMap;
}
Original Post Click here
1 comment:
toronto translation services Thank you for sharing this article. I love it. Keep on writing this type of great stuff.
Post a Comment