📄 numberconcealchangedemo.java~1~
字号:
package conversion;public class NumberConcealChangeDemo { public static void main(String[] args) { byte byte1 = 100; //byte类型自动转变为范围大的数字类型 short short1 = byte1; int int1 = byte1; long long1 = byte1; float float1 = byte1; double double1 = byte1; System.out.println("byte1 = " + byte1); System.out.println("short1 = " + short1); System.out.println("int1 = " + int1); System.out.println("long1 = " + long1); System.out.println("float1 = " + float1); System.out.println("double1 = " + double1); float float2 = 1; //float类型自动转变为范围大的数字类型 double double2 = float2; System.out.println("float2 = " + float2); System.out.println("double2 = " + double2); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -