原生数据类型

来源:互联网 发布:mac ps无法退出全屏 编辑:程序博客网 时间:2024/04/30 01:21
 package test;
//原生数据类型
public class IntegerTest {
 public static void main(String[] args)
 {
  int a = 10;
  Integer integer = new Integer(a);         
  int b = integer.intValue();
  System.out.println(b);
  byte c = 'm';
  Byte byte1 = new Byte(c);
  int d = byte1.intValue();
  System.out.println(d);
 }
}
原创粉丝点击