I want to search for a key in a hashmap and find the nearest one to that key!
HashMap<Long, Object> map = new HashMap<Long , Object>();
so basically I want to search for a long and if it didn't exist in the map find the nearest match to that long value! How can I do that!?
Thanx in advance
See Question&Answers more detail:os