Java initialize map with keys from set

前端 未结 0 1657
醉梦人生
醉梦人生 2020-12-17 04:51

In java, can you initialize a new map\'s keyset based on the values of an existing set?

Something like:

Set setOfStrings = getSetFromSome         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题