摘要: package com.beijing.xiaowen.methods; import java.util.Scanner; public class Test01 { public static void main(String[] args) { int a = 0; int b = 0; St 阅读全文
posted @ 2022-10-20 01:22 Always_0708 阅读(28) 评论(0) 推荐(0)
摘要: 可变参数 package com.beijing.xiaowen.methods; public class Demo01 { public static void main(String[] args) { method01(1,2,4,1); } //可变参数,即在参数类型后 用... 表示 / 阅读全文
posted @ 2022-10-20 00:58 Always_0708 阅读(21) 评论(0) 推荐(0)
摘要: for 循环联系题 计算0-50的奇数和偶数的和 package com.beijing.xiaowen.scanner; public class Test01 { public static void main(String[] args) { //计算0-50的奇数和偶数的和 int a = 阅读全文
posted @ 2022-10-20 00:25 Always_0708 阅读(34) 评论(0) 推荐(0)
摘要: 用户交互Scanner package com.beijing.xiaowen.scanner; import java.util.Scanner; public class Demo01 { public static void main(String[] args) { //接受键盘输入内容 S 阅读全文
posted @ 2022-10-19 23:10 Always_0708 阅读(18) 评论(0) 推荐(0)
摘要: 基本运算符 package com.beijing.xiaowen.operator; public class Demo01 { public static void main(String[] args) { int a = 10; int a1 = 20; int a2 = 30; int a 阅读全文
posted @ 2022-10-19 01:22 Always_0708 阅读(35) 评论(0) 推荐(0)
摘要: 变量 public class WithZVariable { //类变量 static int abc = 66; //实例变量 从属于对象;如果不自行初始化,这个类型默认值为 0 0.0 //布尔值:默认是false //除了基本类型 其余都是null String abv = "zhou"; 阅读全文
posted @ 2022-10-19 00:29 Always_0708 阅读(23) 评论(0) 推荐(0)
摘要: public class TypeConversion { public static void main(String[] args) { /** * 低 高 * byte short char int long float double * */ int a = 128; byte b = (b 阅读全文
posted @ 2022-10-19 00:05 Always_0708 阅读(23) 评论(0) 推荐(0)
摘要: public class BasicSyntax { public static void main(String[] args) { System.out.println("laoliu"); /** * 八大基本数据类型 * */ //整数 int num1 = 10; byte num2 = 阅读全文
posted @ 2022-10-18 23:49 Always_0708 阅读(29) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2022-10-18 15:11 Always_0708 阅读(0) 评论(0) 推荐(0)
摘要: 简单的Dos命令 打开CMD的方式 常用的Dos命令 *所有的符号皆为因为符* #盘符切换 E: #查看当前目录下的所有文件 dir #切换目录 cd 目录的名字 (E:\java) cd .. 返回上一级 #清屏 cls #退出 exit #查看电脑的ip ipconfig #打开应用 calc 阅读全文
posted @ 2022-10-18 00:35 Always_0708 阅读(26) 评论(0) 推荐(0)