摘要: Switch package com.andy.base.Andy.operator.structure; public class SwitchDemo01 { public static void main(String[] args) { //case穿透 //switch 匹配一个具体的值 阅读全文
posted @ 2023-02-22 10:15 努力学习的J1an-JIan 阅读(35) 评论(0) 推荐(0)
摘要: IF package com.andy.base.Andy.operator.structure; import java.util.Scanner; public class IfDemo01 { public static void main(String[] args) { Scanner s 阅读全文
posted @ 2023-02-15 22:44 努力学习的J1an-JIan 阅读(37) 评论(0) 推荐(0)
摘要: 顺序结构 package com.andy.base.Andy.operator.structure; public class SequentialDemo { public static void main(String[] args) { System.out.println("Hello1" 阅读全文
posted @ 2023-02-15 22:43 努力学习的J1an-JIan 阅读(25) 评论(0) 推荐(0)
摘要: Scanner 进阶使用 package com.andy.base.scanner; import java.util.Scanner; public class Demo04 { public static void main(String[] args) { Scanner scanner = 阅读全文
posted @ 2022-07-28 23:56 努力学习的J1an-JIan 阅读(30) 评论(0) 推荐(0)
摘要: 流程控制 package com.andy.base.scanner; import java.util.Scanner; import static java.lang.System.in; public class Demo01 { public static void main(String[ 阅读全文
posted @ 2022-07-26 00:38 努力学习的J1an-JIan 阅读(15) 评论(0) 推荐(0)
摘要: 包机制 Doc package com.andy.base; /** * @author andy * @version 1.0 * @since 1.7 */ public class Doc { String name; /** * @author * @version * @param nam 阅读全文
posted @ 2022-07-16 00:24 努力学习的J1an-JIan 阅读(55) 评论(0) 推荐(0)
摘要: 运算符 package operator; public class Demo01 { public static void main(String[] args) { //二元运算符 int a = 10; int b = 20; int c = 25; int d = 30; System.ou 阅读全文
posted @ 2022-07-14 23:28 努力学习的J1an-JIan 阅读(38) 评论(0) 推荐(0)
摘要: 运算符 package operator; public class Demo01 { public static void main(String[] args) { //二元运算符 int a = 10; int b = 20; int c = 25; int d = 30; System.ou 阅读全文
posted @ 2022-07-07 23:41 努力学习的J1an-JIan 阅读(12) 评论(0) 推荐(0)
摘要: Java基础:变量、常量、作用域 public class Demo08 { //修饰符,不存在先后顺序 static final double PI=3.14; public static void main(String[] args) { System.out.println(PI); /* 阅读全文
posted @ 2022-07-06 00:10 努力学习的J1an-JIan 阅读(23) 评论(0) 推荐(0)
摘要: 类型转换 低 >高 byte ,short, char ->int ->long ->float ->double public class Demo04 { public static void main(String[] args) { int i = 128; byte b = (byte)i 阅读全文
posted @ 2022-07-05 00:20 努力学习的J1an-JIan 阅读(16) 评论(0) 推荐(0)