摘要:
public class switchDemo01 { public static void main(String[] args) { //case 穿透 Scanner grade = new Scanner(System.in); System.out.println("请输入>>:"); S
阅读全文
posted @ 2021-09-07 11:06
亮闪闪的鱼
阅读(32)
推荐(0)
摘要:
   
阅读全文
posted @ 2021-09-06 10:10
亮闪闪的鱼
阅读(11)
推荐(0)
摘要:
package Bao2; import com.sun.xml.internal.ws.api.model.wsdl.WSDLPortType; public class Day3 { public static void main(String[] args) { // += -= int a
阅读全文
posted @ 2021-09-06 09:26
亮闪闪的鱼
阅读(57)
推荐(0)
摘要:
package Bao2; public class Day2 { public static void main(String[] args) { // 与(and) 或 (or) 非 (取反) boolean a = false; boolean b = true; System.out.pri
阅读全文
posted @ 2021-09-05 15:28
亮闪闪的鱼
阅读(53)
推荐(0)
摘要:
package Bao2; public class day1 { public static void main(String[] args) { //二元运算 int a = 10; int b = 20; int c = 30; int d = 30; System.out.println(a
阅读全文
posted @ 2021-09-05 13:52
亮闪闪的鱼
阅读(38)
推荐(0)
摘要:
public class Day3 { public static void main(String[] args) { //int a =1,b=2,c=3; int a = 1; int b = 2; String name = "长伟"; char x = 'S'; double num =
阅读全文
posted @ 2021-09-04 15:46
亮闪闪的鱼
阅读(34)
推荐(0)
摘要:
public class day2 { public static void main(String[] args) { int i = 127; byte b = (byte)i; //强制转换 (类型)变量名 高--低 //自动转换 低--高 System.out.println(i); //强
阅读全文
posted @ 2021-09-04 13:47
亮闪闪的鱼
阅读(32)
推荐(0)
摘要:
public class day1{ public static void main(String[] args){ //整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x int i = 10; int i2 = 010; //八进制 0 int i3 = 0x10; //十六进制 0x
阅读全文
posted @ 2021-09-04 12:44
亮闪闪的鱼
阅读(38)
推荐(0)