java 包装类的应用
2024-08-25 00:11:23
package integer; public class baozhuang {
public static void main(String[] args) {
System.out.println(Integer.MAX_VALUE);
System.out.println(Integer.MIN_VALUE);
System.out.println(Integer.TYPE);
System.out.println(Integer.SIZE);
System.out.println(Double.SIZE);
System.out.println(Float.SIZE); Integer n1=15;
double n2=n1.doubleValue();
System.out.println(n2); Integer n=new Integer(15);//装箱
Integer n3=Integer.valueOf(45); //装箱,推荐,带有缓存,最好使用第二种
}
}
最新文章
- CSS布局奇淫技巧之--各种居中
- WCF 、Web API 、 WCF REST 和 Web Service 的区别
- 6.Git内容修改之后的查看和提交
- Scala笔记整理
- js关于事件
- 【Asphyre引擎】学习笔记(二)
- linux测速软件speedtest-cli
- DevExpress 中根据数据库字典动态生成卡式菜单 z
- 【转载】10个有用的du命令行
- bootstrap---treeview使用方法
- Angular开发实践(六):服务端渲染
- 使用SecureCRT做端口转发
- JsonPath 使用
- IDEA下搜狗输入法输入中文时卡着不动的参考解决方法
- audio video 控制播放和停止
- BZOJ.4180.字符串计数(后缀自动机 二分 矩阵快速幂/倍增Floyd)
- cocos代码研究(5)Action学习笔记
- Cook-Torrence Illumination Model 的一些数学说明
- Linux命令之tar命令
- 关于hessian接口类方法顺序及对象序列化的实战研究