摘要:
内存分析 三种初始化 **int类型没有赋值默认为 0 ** public class ArrayDemo03 { public static void main(String[] args) { //静态初始化:创建 + 赋值 int[] a = {1,2,3,4,5,6,7,8}; System 阅读全文
posted @ 2021-06-27 17:53
多瑞C
阅读(30)
评论(0)
推荐(0)
摘要:
数组 1、定义 2、声明创建 public class ArrayDemo01 { public static void main(String[] args) { //变量的类型 变量的名字 = 变量的值; //第一种创建方式 //int[] nums; //1.声明一个数组 //nums = n 阅读全文
posted @ 2021-06-27 17:50
多瑞C
阅读(150)
评论(0)
推荐(0)