2022年5月18日

摘要: public class Method { public static void main(String[] args) { int[] arr = {11,22,1,2,33,4}; System.out.println(getMax(arr)); } public static int getM 阅读全文

posted @ 2022-05-18 11:12 LutixiaGit 阅读(25) 评论(0) 推荐(0) 编辑

2022年5月17日

摘要: System.out.println(cmp(5,10)); System.out.println(cmp((short)5,(short)10)); public static boolean cmp(int a,int b){ return a == b; } public static boo 阅读全文

posted @ 2022-05-17 13:18 LutixiaGit 阅读(13) 评论(0) 推荐(0) 编辑

摘要: 形参:方法中定义的参数(int num) 实参:方法中调用的参数 (10) public class Find_word { public static void main(String[] args){ isNumber(10); int number = 11; isNumber(number) 阅读全文

posted @ 2022-05-17 13:07 LutixiaGit 阅读(44) 评论(0) 推荐(0) 编辑

摘要: 数组个数:arr.lenth for(int i = 0 ;i<arr.length;i++){ System.out.println(arr[i]); } 数组遍历。 阅读全文

posted @ 2022-05-17 00:29 LutixiaGit 阅读(14) 评论(0) 推荐(0) 编辑

摘要: package CAK; public class AK { public static void main(String[] args) { int[] arr = new int[3]; System.out.println(arr);//内存地址 System.out.println(arr[ 阅读全文

posted @ 2022-05-17 00:12 LutixiaGit 阅读(52) 评论(0) 推荐(0) 编辑

2022年5月16日

摘要: 阅读全文

posted @ 2022-05-16 15:51 LutixiaGit 阅读(5) 评论(0) 推荐(0) 编辑

摘要: 1. 类: 大驼峰命名法:GoodStudent 方法,函数,变量: 小驼峰命名法:firstBlood 2.类型转换 byte 不可以转为char 3.强制类型转换 public class Tpyeconvet{ public static void main(String[] args){ d 阅读全文

posted @ 2022-05-16 15:25 LutixiaGit 阅读(21) 评论(0) 推荐(0) 编辑

摘要: 1. 计算机存储设备的最小信息单元:位 (bit)通常用“b”表示 计算机最小的存储单元为:字节(byte)通常用"B”表示, 1B=8bit,字节是由连续的8个位组成的 1KB = 1024B 1MB = 1024KB 1GB = 1024MB 1KB=2^10B,抽去单位B,则1K=2^10,1 阅读全文

posted @ 2022-05-16 15:02 LutixiaGit 阅读(8) 评论(0) 推荐(0) 编辑

摘要: java程序 通过JVM(java虚拟机) 在需要运行java应用程序的操作系统上,安装对应的JAVA虚拟机 JRE:是JAVA程序运行时的环境,包含了JVM和核心类库 运行:只需要JRE JDK:java程序开发工具包,包含了JRE和javac.exe(编译工具)和java.exe(执行工具) 开 阅读全文

posted @ 2022-05-16 14:31 LutixiaGit 阅读(17) 评论(0) 推荐(0) 编辑

摘要: 第一个JAVA程序 阅读全文

posted @ 2022-05-16 14:23 LutixiaGit 阅读(24) 评论(0) 推荐(0) 编辑