摘要: package Function;import java.util.Scanner;public class Calc { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); System. 阅读全文
posted @ 2021-12-07 17:04 随顾 阅读(106) 评论(0) 推荐(0)
摘要: package Array;public class Study01 { public static void main(String[] args) { //定义一个数组 int [] nums; //创建一个数组(可存放五个int类型的数据) nums=new int[10]; //给数据中的元 阅读全文
posted @ 2021-12-07 17:02 随顾 阅读(43) 评论(0) 推荐(0)
摘要: package Array;//从内存分析public class Study03 { public static void main(String[] args) { //定义一个数组(动态初始化) int [] a=new int[5]; //long []a=new int[4];数组类型必须 阅读全文
posted @ 2021-12-07 17:01 随顾 阅读(47) 评论(0) 推荐(0)