看板 [ java ]
討論串[問題] Object陣列轉int
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者realmeat (真肉)時間11年前 (2013/10/09 22:43), 編輯資訊
0
0
0
內容預覽:
隨手亂寫~. public static void main(String args[]) throws Exception{. Object objects[]=. {. new Integer(1),. new Double(1.2),. new Float(1.6),. new String(
(還有891個字)

推噓5(5推 0噓 3→)留言8則,0人參與, 最新作者gewabavv (昂流)時間11年前 (2013/10/09 20:38), 編輯資訊
0
0
0
內容預覽:
Object o[]={new Integer(1), new Double(1.2), new Float(1.6), new String("app")}想請教一個問題,一個物件陣列如上所示,如何把陣列的元素全部轉成int,. 這是我目前想到的方法. int a0=Integer.parseIn
(還有162個字)
首頁
上一頁
1
下一頁
尾頁