摘要: package scr.com.kaung.base;/** * @author kuangshen * @version 1.0 * @since 1.8 */public class Doc { String name; /** * @author kuangshen * @param name 阅读全文
posted @ 2022-03-17 22:57 &薄荷微凉ζ、 阅读(36) 评论(0) 推荐(0)
摘要: package operator; //三元运算符public class Demo08 { public static void main(String[] args) { // x ? y : z //如果x==true,则结果为y,否则结果为z int score = 80; String t 阅读全文
posted @ 2022-03-16 23:13 &薄荷微凉ζ、 阅读(30) 评论(0) 推荐(0)
摘要: package operator;import org.w3c.dom.ls.LSOutput;public class Demo06 { /* A = 0011 1100 B = 0000 1101 A&B 0000 1100 A/B 0011 1101 A^B 0011 0001 ~B 1111 阅读全文
posted @ 2022-03-16 00:01 &薄荷微凉ζ、 阅读(22) 评论(0) 推荐(0)
摘要: package operator;​public class Demo01 { public static void main(String[] args) { //二元运算符 //ctrl + D : 复制当前行到下一行 int a =10; int b =20; int c =25; int d 阅读全文
posted @ 2022-03-14 23:46 &薄荷微凉ζ、 阅读(36) 评论(0) 推荐(0)
摘要: public class Demo08 {​ //类变量 static static double salary;​​​ //属性;变量​ //实例变量;从属于对象;如果不自行初始化,这个类型的默认值 0 0 0 //布尔值;默认是false //出了基本类型,其余的默认都是null; String 阅读全文
posted @ 2022-03-12 23:59 &薄荷微凉ζ、 阅读(23) 评论(0) 推荐(0)
摘要: public class Damo05 { public static void main(String[] args) { int i = 128; byte b = (byte)i;//内存溢出 //强制转换 (类型)变量名 //自动转换 低--高 System.out.println(i); 阅读全文
posted @ 2022-03-09 23:01 &薄荷微凉ζ、 阅读(28) 评论(0) 推荐(0)
摘要: public class Damo03 { public static void main(String[] args) { //整数拓展 进制 二进制0b 十进制 八进制 0 十六进制0x int i = 10; int i2 = 010; //八进制0 int i3 =0x11; //十六进制0 阅读全文
posted @ 2022-03-08 23:43 &薄荷微凉ζ、 阅读(22) 评论(0) 推荐(0)
摘要: public class Demo02 { public static void main(String[] args) { //八大基本数据类型(整数) int num1 = 10; //最常用 byte num2 =20; short num3 = 30; long num4 = 30L; // 阅读全文
posted @ 2022-03-07 23:57 &薄荷微凉ζ、 阅读(23) 评论(0) 推荐(0)
摘要: Java程序运行机制 1 编译型(相当于自己翻译) 2 解释型(相当于有翻译官帮忙) public class Demo01 { public static void main(String[] args){​ String 王者荣耀 ="百星王者"; //String 王者荣耀 ="倔强青铜"; 阅读全文
posted @ 2022-03-06 22:49 &薄荷微凉ζ、 阅读(65) 评论(0) 推荐(0)
摘要: Day03 1 ctrl+c 复制 2 ctrl+v 粘贴 3 ctrl+a 全选 4 ctrl+x 剪切 5 ctrl+s 保存 6 alt+f4 关闭窗口 打开CMD的方式 1 开始+系统+命令提示符 2 Win键+R 输入cmd打开控制台(推荐使用) 第三代语言 1 高级语言 2 大体上是分为 阅读全文
posted @ 2022-03-04 23:05 &薄荷微凉ζ、 阅读(19) 评论(0) 推荐(0)