摘要: 1.数组初始化 package com.kuang.array; public class Demo01 { public static void main(String[] args) { //静态初始化:创建+赋值 int[] a = {1,2,3,4,5,6,7,8,9}; System.ou 阅读全文
posted @ 2021-07-05 18:51 山村小黎明 阅读(350) 评论(0) 推荐(0)
摘要: 1.方法定义 package com.kuang.method; public class Demo02 { public static void main(String[] args) { int max = max(10,20); System.out.println(max); } publi 阅读全文
posted @ 2021-07-05 10:55 山村小黎明 阅读(233) 评论(0) 推荐(0)