//整数拓展:     进制 二进制0b   十进制   八进制0   十六进制0x
       int q =10;
       int q1=0b10;
       int q2=077;
       int q3=0xB0;    //0~9 A=10 B=11 C=12 D=13 E=14 F=15
       System.out.println(q);
       System.out.println(q1);
       System.out.println(q2);
       System.out.println(q3);
/浮点数拓展?    银行业务怎么表示?钱
       //以后会学到BigDecimal 数学工具类
       //float     有限 离散 有舍入误差 大约 接近但不等于
       //double
       //最好完全避免使用浮点数进行比较
       //最好完全避免使用浮点数进行比较
       //最好完全避免使用浮点数进行比较
?
       float z =0.2f;  //0.2
       double a=2.0/10;//0.2
       System.out.println(z);
       System.out.println(a);
       System.out.println(z==a);//false
?
       float d1 =4821324433243f;
       float d2 =d1 + 1;
       System.out.println(d2==d1);//ture
?
       char c1 =‘A‘;
       char c2 =‘凡‘;
       System.out.println(c1);
       System.out.println((int)c1);//强制转换
       System.out.println(c2);
       System.out.println((int)c2);//强制转换
       //所有的字符本质还是数字
       //编码 Unicode 表:97=a 65=A 2字节 0-65536 个字符 Excel 2 16次方 =65536
       //U0000 UFFFF
       char m =‘\u0061‘;
       System.out.println(m);//a
       int b = 20961;
       System.out.println((char) b);//int强制转换成char
System.out.println("=======================================");
       //转义字符
       // \t 制表符
       // \n 换行
       // \b 退格
       // \" 一个双引号
       System.out.println("hello\tworld");String sa = new String("hello world");
       String sb = new String("hello world");
       System.out.println(sa==sb);
?
       String sc ="hello world";
       String sd ="hello world";
       System.out.println(sc==sd);
       //对象 从内存分析
       System.out.println("=======================================");
       //布尔值扩展
       boolean flag =true;
       if (flag==true){}   //新手程序员
       if (flag){}        //老手
       //Less is More! 代码要精简易读
?
?原文:https://www.cnblogs.com/studylf/p/15265404.html