07 2022 档案

摘要: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 阅读(25) 评论(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 阅读(11) 评论(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 阅读(52) 评论(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 阅读(23) 评论(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 阅读(8) 评论(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 阅读(17) 评论(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 阅读(10) 评论(0) 推荐(0) 编辑
摘要:数据类型拓展与面试题讲解 import java.math.BigDecimal; public class Demo03 { public static void main(String[] args) { //整数扩展: 进制 二进制0b 十进制 八进制0 十六进制0x int i = 10 ; 阅读全文
posted @ 2022-07-04 00:19 努力学习的J1an-JIan 阅读(22) 评论(0) 推荐(0) 编辑
摘要:数据类型 public class Demo02 { public static void main(String[] args) { // String a="Hello"; //int num = 10; // System.out.println(a); //System.out.printl 阅读全文
posted @ 2022-07-03 23:33 努力学习的J1an-JIan 阅读(27) 评论(0) 推荐(0) 编辑
摘要:标识符和关键字 public class Demo01 { public static void main(String[] args) { String Ahello = "Andy"; // ctrl+ d 复制当行内容 String ahello = "Andy"; String $hello 阅读全文
posted @ 2022-07-02 23:32 努力学习的J1an-JIan 阅读(17) 评论(0) 推荐(0) 编辑
摘要:基础语法1 public class HelloWorld { public static void main(String[] args) { //输一个Hello,World! // System.out.println("Hello,World!"); //多行注释 /* 注释*/ /* 我是 阅读全文
posted @ 2022-07-02 23:10 努力学习的J1an-JIan 阅读(19) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示