Java语言-GenSetExample.java

    技术2025-08-30  4

    import java.util.*; public class GenSetExample { public static void main(String[] args) { // TODO Auto-generated method stub Set<String> set=new HashSet<String>(); set.add("one"); set.add("second"); set.add("3rd"); System.out.println(set); } } [3rd, one, second]
    Processed: 0.010, SQL: 9