可以轉換為List:
Setset=newHashSet();
set.add(1);
set.add(2);
set.add(3);
ListmyList=newArrayList(set);
System.out.println(myList.get(0));
System.out.println(myList.get(1));
System.out.println(myList.get(2));
可以轉換為List:
Setset=newHashSet();
set.add(1);
set.add(2);
set.add(3);
ListmyList=newArrayList(set);
System.out.println(myList.get(0));
System.out.println(myList.get(1));
System.out.println(myList.get(2));