Hey Everyone, I have interesting question on hash map and it says : I have a hash map with values : {\"1-a\",\"2-a\",\"3-b\",\"4-b\"} Keys Values 1 a 2 a 3 b 4 b I need to swap the key values with losing the data , means the new hash map should be : Keys Values a 1,2 b 3,4 Can anyone suggest me the way to do this?
Can you answer this question?
Write Answer1 Answers