摘要: package reck;​public class Demo01 { public static void main(String[] args) { //创建之后直接赋值 int[] a = {1,2,3,4,5};​ System.out.println(a[2]); int[] b=new 阅读全文
posted @ 2021-03-08 20:04 默默努力的路人甲 阅读(46) 评论(0) 推荐(0)
摘要: Java的数组 public class Demo18 { public static void main(String[] args) { int[] nums;//1.声明一个数组 nums = new int[5];//2.创建一个为5的数组 //通常可以合为一步 int[] nums = n 阅读全文
posted @ 2021-03-08 12:41 默默努力的路人甲 阅读(33) 评论(0) 推荐(0)