您的位置:首页 > 其它

包装类 的用法

2016-02-14 10:04 267 查看
package com.MyArray;

import org.omg.CORBA.INTERNAL;

/**
* 测试包装类的基本用法
* @author Administrator
*
*/
public class Test01 {

public static void main(String[] args) {
Integer i = new Integer(1000);
System.out.println(Integer.MAX_VALUE);
System.out.println(Integer.toHexString(i));
Integer i2 = Integer.parseInt("234");
Integer i3 = new Integer("300");
System.out.println(i3.intValue());
System.out.println(i.intValue());
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: