摘要:
package com.xu.operator;public class Demo07 { public static void main(String[] args) { int a=10; int b=20; a+=b;//a=a+b System.out.println(a);//30 Sys 阅读全文
posted @ 2021-05-24 06:12
寻找加油
阅读(40)
评论(0)
推荐(0)
摘要:
package com.xu.operator;public class Demo06 { public static void main(String[] args) { /* A=0011 1100; B=0000 1101; A&B=0000 1100 //A与B,结果为0000 1100 A 阅读全文
posted @ 2021-05-24 06:11
寻找加油
阅读(36)
评论(0)
推荐(0)
摘要:
package com.xu.operator;//逻辑运算符public class Demo05 { public static void main(String[] args) { //与(and) 或(or) 非(取反) boolean a=true; boolean b=false; Sy 阅读全文
posted @ 2021-05-24 06:10
寻找加油
阅读(45)
评论(0)
推荐(0)
摘要:
package com.xu.operator;public class Demo04 { public static void main(String[] args) { //++ -- 自曾,自减;一元运算符 int a=3; int b=a++;/* a++ a=a+1;a++执行完的下一句a 阅读全文
posted @ 2021-05-24 06:09
寻找加油
阅读(30)
评论(0)
推荐(0)
摘要:
package com.xu.operator;public class Demo03 { public static void main(String[] args) { //关系运算符返回的结果,正确,错误,布尔值 int a=10; int b=20; int c=21; System.out 阅读全文
posted @ 2021-05-24 06:08
寻找加油
阅读(33)
评论(0)
推荐(0)
摘要:
package com.xu.operator;public class Demo02 { public static void main(String[] args) { long a=123123123123123L; int b=123; short c=10; byte d=8; Syste 阅读全文
posted @ 2021-05-24 06:07
寻找加油
阅读(27)
评论(0)
推荐(0)
摘要:
package com.xu.operator;import com.xu.base.*;public class Demo01 { public static void main(String[] args) { //二元运算符 //ctrl+d:复制当前行到下一行 int a=10; int b 阅读全文
posted @ 2021-05-24 06:06
寻找加油
阅读(32)
评论(0)
推荐(0)
摘要:
public class HelloWorld { public static void main(String[] args) { String teacher="秦僵"; //单行注释:只能注释一行文字;(注释是给人看的,不会被执行) //输出一个Hello,World! System.out. 阅读全文
posted @ 2021-05-24 06:05
寻找加油
阅读(60)
评论(0)
推荐(0)
摘要:
package com.xu.base;public class Demo09 { //修饰符,不存在先后顺序 如:static、public static final double PI=3.14; public static void main(String[] args) { System.o 阅读全文
posted @ 2021-05-24 06:04
寻找加油
阅读(45)
评论(0)
推荐(0)
摘要:
package com.xu.base;public class Demo008 { //属性:变量 // 类变量 static static double salary=2500; /* 实例变量:从属于对象;如果不自行初始化,这个类型的默认值 所有数值类型 初始化为0或0.0,0代表整数,0.0 阅读全文
posted @ 2021-05-24 06:00
寻找加油
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号