Integer类型、int类型类型、String类型的相互转换

public class TestInteger { public static void main(String[] args) { //使用Integer类中的构造方法来构造对象,该类没有无参构造方法 // int类型转换成Integer Integer it1 = new Integer(123); //自动调用toString()方法,获得字符串类型的十进制整数 System.out.pr
相关文章
相关标签/搜索