I like to sort a map by value (instead of by key).
The following is my
test program.
LString is a third-party library which I do not have the source code.
Please help to fix the following error:
Bound mismatch: The generic method entriesSortedByValues(Map<K,V>) of type Utils is not applicable for the arguments (Map<
String,LString>). The inferred type LString is not a valid substitute for the bounded parameter <V extends Comparable<? super V>> P.java
Type mismatch: cannot convert from SortedSet<Map.Entry<String,LString>> to Map<String,LString> P.java