• [Java_Android] 02.Java HashSet
    import java.util.HashSet; import java.util.Iterator; class R { int count; public R(int count) { this.count = count; } public String toString() { return "R[count:" + count + "]"; } public boolean equals(Object obj) { if (this == obj) { return true; ... 阅读全文
  • [Java_Android] 01.Java ArrayList
    import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class Main { public static void main(String[] args) { // 1.初始化集合对象 List<String> list = new ArrayList<String>(); list.add("hello"); list.add("java"); // 2.遍历集合: ... 阅读全文
  • 1
  • 共 2 条记录