摘要: 数组定义: package com.mao.array; public class ArrayDemo01 { //变量的类型 变量的名字 =变量的值 public static void main(String[] args) { int[] nums;//1.定义(首选) nums=new in 阅读全文
posted @ 2022-07-29 17:54 是貓阿啊 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 什么是方法: package com.mao.method;public class Demo01 { //main方法 public static void main(String[] args) { //加法不加static不能在其他方法中用 //实际参数:实际调用传递给他的参数 int sum 阅读全文
posted @ 2022-07-29 06:56 是貓阿啊 阅读(15) 评论(0) 推荐(0) 编辑