Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

How to get key depending upon the value from hashmap java collection?


want to retrieve the specific key associated with the value in a hashmap

I want to retrieve the key of "ME", how can I get it?

Code snippet :

HashMap map = new HashMap();
map.put(1,"I");
map.put(2,"ME");

asked Jun 19, 2015 in Core java by rajesh
0 votes
64 views



Related Hot Questions



Government Jobs Opening


...