摘要:
由于java语言是强类型语言,所有进行有些运算的时候,需要用到类型转换 低 高 byte/short/char int long float double 运算中,不同类型的数据先转化为统一类型,然后进行运算 强制类型转换:高 低 自动转换:低 高 public class demo4 { publ 阅读全文
摘要:
public class demo3 { public static void main(String[] args) { 整数拓展 进制 二进制(0b) 八进制(0) 十进制 十六进制(ox) int i=10; int i1=010;//八进制 int i2=0xC;//十六进制 0~9 A~F 阅读全文