摘要: public class ShuZu { public static void main(String[] args) { int a = 1 ; int b = 2 ; System.out.println(a);//1 System.out.println(b);//2 XXX(a,b);//方 阅读全文
posted @ 2021-01-14 19:47 枯树老鸭 阅读(86) 评论(0) 推荐(0)
摘要: import java.util.ArrayList; public class DemoDDDD { public static void main(String[] args) { // 创建集合对象 ArrayList<String> list = new ArrayList<String>( 阅读全文
posted @ 2021-01-14 19:45 枯树老鸭 阅读(688) 评论(0) 推荐(0)
摘要: package com.peihua.day7.exercise;/*定义集合存入20个随机数字,通过自定义方法筛选偶数元素,放入新集合,打印输出 */import java.util.ArrayList;import java.util.Random;public class DemoArrayR 阅读全文
posted @ 2021-01-14 19:27 枯树老鸭 阅读(790) 评论(0) 推荐(0)