My Careers
Learning Notes
Labels
Java Tutorial
Manual Testing
QTP Tutorial
Selenium
Web Service
Tuesday, 6 December 2016
How to get Hashmap key and Hashmap value
By using below below code we can get Hashmap key and Hashmap value
Map,.
for (Map.Entry<String,String> entry : map1.entrySet()) {
System.out.println("HashMap key="+entry.getKey());
System.out.println("HashMap value="+entry.getValue());
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment