看板
[ java ]
討論串[問題] Object陣列轉int
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
隨手亂寫~. public static void main(String args[]) throws Exception{. Object objects[]=. {. new Integer(1),. new Double(1.2),. new Float(1.6),. new String(
(還有891個字)
內容預覽:
Object o[]={new Integer(1), new Double(1.2), new Float(1.6), new String("app")}想請教一個問題,一個物件陣列如上所示,如何把陣列的元素全部轉成int,. 這是我目前想到的方法. int a0=Integer.parseIn
(還有162個字)
首頁
上一頁
1
下一頁
尾頁