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 |
how we can implement interface in jsp ?
how team leaders assign work for the team member like through papers,word document
which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based
Which container method is used to cause a container to be laid out and redisplayed?
What is the difference between java class and bean?
If your ui seems to freeze periodically, what might be a likely reason?
What are the different types of exception?
What do you mean by Socket Programming?
What is ioc concept?
Why doesn’t the focus feature on the tag work in every circumstance?
What is message driven beam?
What restrictions are placed on the location of a package statement within a source code file?