摘要: import java.util.ArrayList; import java.util.Iterator; public class StringSampleDemo { public static void main(String[] args) { ArrayList al = new ArrayList(); al.add(new Student("zhangsan1", 20, "男") 阅读全文
posted @ 2019-09-30 15:38 深南大道 阅读(1952) 评论(0) 推荐(0)
摘要: import java.util.ArrayList; import java.util.Iterator; public class StringSampleDemo { public static void main(String[] args) { ArrayList al = new ArrayList(); al.add("1"); al.add("2"); al.add("3"); a 阅读全文
posted @ 2019-09-30 13:34 深南大道 阅读(998) 评论(0) 推荐(0)
摘要: public class StringSampleDemo { public static void main(String[] args) { int[] arr = {1, 2, -20, 20, 6, 7, 90}; int num = arr.length; //经过多少趟排序 for (int k = num - 1; k > 0; k--) { int flag = 0; //每一次比 阅读全文
posted @ 2019-09-30 12:39 深南大道 阅读(213) 评论(0) 推荐(0)