摘要:
public class reward { byte age1; short age2; int age3; long age4; char age5; float age6; double age7; boolean age8; String age9; static final double W 阅读全文
posted @ 2021-10-04 16:38
莹-灿
阅读(484)
评论(0)
推荐(0)
摘要:
package OPERATOR;public class Deamo01 { public static void main(String[] args) { int a =10; int b =20; int c =25; int d =25; System.out.println(a+b); 阅读全文
posted @ 2021-10-04 16:37
莹-灿
阅读(96)
评论(0)
推荐(0)
摘要:
public class deamo3 { //属性;变量 //实例变量:从属于对象 如果没有设定初始值,则按照默认值进行 //布尔值默认为false /**除了基本类型其他的初始值都为null(空白) * 基本类型(byte short int long char float double boo 阅读全文
posted @ 2021-10-04 16:34
莹-灿
阅读(94)
评论(0)
推荐(0)
摘要:
public class deamo2 { public static void main(String[] args) { int i =128; byte b =(byte)i; System.out.println(i); System.out.println(b); //强制转换(变量名称) 阅读全文
posted @ 2021-10-04 16:33
莹-灿
阅读(49)
评论(0)
推荐(0)
摘要:
public class deamo1 { public static void main(String[] args) { System.out.println("Hello\tWorld"); char c1 ='你'; System.out.println((int)c1); char c2 阅读全文
posted @ 2021-10-04 16:33
莹-灿
阅读(60)
评论(0)
推荐(0)
摘要:
public class deamo2 { public static void main(String[] args) { int i =128; byte b =(byte)i; System.out.println(i); System.out.println(b); //强制转换(变量名称) 阅读全文
posted @ 2021-10-04 16:32
莹-灿
阅读(270)
评论(0)
推荐(0)
浙公网安备 33010602011771号