Ad
  • Custom User Avatar
  • Custom User Avatar

    The order of entries in Map<K,V> is unspecified in general, in any extent. Even if very likely, it is not guaranteed that two subsequent iterations over the same map will yield elements in the same order. This can work for some implementations like sorted maps, tree maps, or linked hash maps, but building a task which relies on order of elements in an abstract map might be not the best idea.

  • Custom User Avatar

    some inconsistency in chars used: vs '