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 |
What is servlet preinitialization
Define prototype?
What is a policy?
diff mvc1 and mvc2 wahts is mean by servlet chaining?
What is scalable, portability in the view of J2EE?
Can you write Java code for declaration of multiple inheritance in Java ?
diff between jsp include directive and jsp action include?
Explain Life cycle of Servlet Filter.
2 Answers InfoBrain, ITC Infotech,
What is Remote Server?
What are the JSP implicit objects ?
Which textcomponent method is used to set a textcomponent to the read-only state?
diffrence between jsp and servelts.