I have a Java HashMap with Float keys and String values. now given a Float which is not in the HashMap, how can i find the key which ist most similar to the given Float?
Sounds like a job for one of the implementations of java.util.NavigableMap.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With