Java Integer类构造方法
提问人:刘旭39发布时间:2020-11-26
//Integer类构造方法
public class IntegerConstant{
public static void main(String[] args) {
Integer i1 = new Integer(10);
Integer i2 = new Integer(10);
System.out.println("以int类型为入参构造Integer对象:"+i1);
System.out.println("以String为入参构造Integer对象:"+i2);
}
}

继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>