基本数据类型包装类

来源:互联网 发布:快递单打印软件 编辑:程序博客网 时间:2024/04/29 15:10
/*基本数据类型对象包装类byte   Byteshort  shortlongLongintIntegerboolBooleanfloatFloatdoubleDoublecharCharacter基本数据类型包装类作用:1、用于基本数据类型与字符串类型之间的转换,基本数据类型转换为字符串:基本数据类型 + ""即可基本数据类型.toString(数据值)Integer.toString(34);2、字符串转基本数据类型:Integer.parseInt("32");Long.parseLong("123");Boolean .parseBoolean("True");基本数据类型包装类.parseXXX();*/class  BaseTypeDemo{public static void main(String[] args) {//整型最大值System.out.println(Integer.MAX_VALUE);}}

0 0
原创粉丝点击