code: public static Map.Entry<Object, Double> selectMaxKeyValue(Map<Object, Double> keyValueMap) {
          Double maxValue=Double.NEGATIVE_INFINITY;
          Object maxValueKey = null;
          
          for(Map.Entry<Object, Double> entry : keyValueMap.entrySet()) {
              Double value = entry.getValue();
              if(value!=null && value>maxValue) {
                  maxValue=value;
                  maxValueKey=entry.getKey();
              }
          }
          
          return new AbstractMap.SimpleEntry<>(maxValueKey, keyValueMap.get(maxValueKey));
      }
docs: Selects the key-value entry with the largest value.
  
  @param keyValueMap
  @return