摘要:
数据类型的转换 低 >高 byte,short,char->int->long->float->double 运算中,不同类型的数据先转化为同一类型,然后进行运算 public class Demo03 { public static void main(String[] args) { int i 阅读全文
posted @ 2021-02-20 19:56
喵笙
阅读(25)
评论(0)
推荐(0)
|
摘要:
数据类型的转换 低 >高 byte,short,char->int->long->float->double 运算中,不同类型的数据先转化为同一类型,然后进行运算 public class Demo03 { public static void main(String[] args) { int i 阅读全文
posted @ 2021-02-20 19:56
喵笙
阅读(25)
评论(0)
推荐(0)
摘要:
数据的基本类型及扩展 1. 数据类型: public class Demo01 { public static void main(String[] args) { //八大数据类型 int num1 = 10; byte num2 = 20; short num3 = 30; long num4 阅读全文
posted @ 2021-02-20 16:07
喵笙
阅读(17)
评论(0)
推荐(0)
|