On Sun, 5 Sep 2021 12:38:20 GMT, Jaikiran Pai <jai.forums2...@gmail.com> wrote:
> Do you mean that converting the keySet() of an >existing Map into an array and then sorting that array and then using >that sorted array to iterate and using these keys to do an additional >lookup for value against the original Map would be more efficient in >this case? You can convert entrySet() to array. Not a keySet. In this case there is no need to lookup for values. ------------- PR: https://git.openjdk.java.net/jdk/pull/5372