看板 [ java ]
討論串[問題] 請問一個Collection的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Reder (Reder)時間17年前 (2008/07/03 01:39), 編輯資訊
0
0
0
內容預覽:
回一下XD. 改成:. while (it.hasNext()) {. Object temp = it.next();. if (temp instanceof String) {. String str = (String) temp;. System.out.println(str);. }
(還有15個字)

推噓5(5推 0噓 3→)留言8則,0人參與, 最新作者jtorngl (tou)時間17年前 (2008/07/02 21:49), 編輯資訊
0
0
0
內容預覽:
import java.util.*;. public class ArrayListDemo {. public static void main(String[] args) {. List lists = new LinkedList();. lists.add("abc");. lists.
(還有787個字)
首頁
上一頁
1
下一頁
尾頁