Hi I have a HashMap and also a function which returns a double value known as answer. I want to check which value in the Hash
HashMap isn't the best structure to do this. You can get output.keySet() and check each value, for example:
for(String key:output.keySet()){
Double temp=Math.abs(output.get(key)-answer);
if(temp
but it's not the best way. you are forced to use a hashmap? By the way, this isn't a problem if you have always five answer to check...