点击运行
public class Main { public static void main(String args[]) { Integer x = 5; // 返回 byte 原始数据类型 System.out.println( x.byteValue() ); // 返回 double 原始数据类型 System.out.println(x.doubleValue()); // 返回 long 原始数据类型 System.out.println( x.longValue() ); } }
运行结果 :
正在执行...