摘要: 阅读全文
posted @ 2023-11-22 21:59 Cloudhahaha 阅读(21) 评论(0) 推荐(0)
摘要: package array; public class ArrayDemo02 { public static void main(String[] args) { //静态初始化:声明+创建+赋值 一起做好了 int [] a = {1,2,3,4}; System.out.println(a[0 阅读全文
posted @ 2023-11-22 19:20 Cloudhahaha 阅读(10) 评论(0) 推荐(0)
摘要: package array; import sun.print.SunMinMaxPage; public class ArrayDemo01 { //变量类型 变量名 = 变量的值; //数组类型:在变量后加[]即可或者在int后加 public static void main(String[] 阅读全文
posted @ 2023-11-22 13:45 Cloudhahaha 阅读(41) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-11-22 11:47 Cloudhahaha 阅读(8) 评论(0) 推荐(0)
摘要: package method; import java.util.Scanner; public class Demo07 { public static void main(String[] args) { Scanner scanner = new Scanner(System .in); Sy 阅读全文
posted @ 2023-11-22 11:32 Cloudhahaha 阅读(8) 评论(0) 推荐(0)