How do you iterate in Hashmap?
Answer / varun
HashMap<String, String> loans = new HashMap<String, String>();
loans.put("home loan", "citibank");
loans.put("personal loan", "Wells Fargo");
for (String key : loans.keySet()) {
System.out.println("------------------------------------------------");
System.out.println("Iterating or looping map using java5 foreach loop");
System.out.println("key: " + key + " value: " + loans.get(key));
}
| Is This Answer Correct ? | 0 Yes | 0 No |
If your ui seems to freeze periodically, what might be a likely reason?
What are the types of data passing mechanisams under JMS specification?
What is a convertor?
What is in-memory replication?
To make an object to begin executing as a separate thread, what method is used?
To identify IDL language what mapping mechanism is used?
what are the software's needed to develop advanced java 3 tier application project
whats is mean by filter?
what do u mean by java bean??
Is multiple try block is possible in single java Application......
What are various types of class loaders used by jvm?
what is the Scope of Final Keyword in Java?