Java: Set String List 互转 1.Code import java.util.*; public class Main { public static void main(String[] args) { //List 转成 Set System.out.println("-------List 转成 Set--------"); List<String> appIdList = new ArrayList<>(); appIdList.add("100001"); appIdList.add("100002");