java基础都忘记了 hashSet转list

HashSet<String> hSet = new HashSet<>();
hSet.add("ZS");
List<String> mList= new ArrayList<>(hSet);
LogUtil.e("mList" + mList.toString());
posted @ 2020-08-25 15:27  码弄  阅读(4830)  评论(0编辑  收藏  举报