Java Integer類構(gòu)造方法
提問人:劉旭39發(fā)布時間:2020-11-26
//Integer類構(gòu)造方法
public class IntegerConstant{
public static void main(String[] args) {
Integer i1 = new Integer(10);
Integer i2 = new Integer(10);
System.out.println("以int類型為入?yún)?gòu)造Integer對象:"+i1);
System.out.println("以String為入?yún)?gòu)造Integer對象:"+i2);
}
}

繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
點擊加載更多評論>>