Re: [問題]關於collection使用的一些問題
※ 引述《PsMonkey (痞子軍團團長)》之銘言:
: : import java.util.*;
: : JButton button = new JButton();
: : Vector vec = new Vector();
: : vec.add(button);
: 這位太太,我用 JDK5.0 搭配 Eclipse
: 完~~~~全沒有出現任何錯誤訊息
他大概是指Generic的Warning吧…
Note: XXX.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
http://caterpillar.onlyfun.net/Gossip/JavaGossip-V1/DefineGenericsClass.htm
http://caterpillar.onlyfun.net/Gossip/JavaGossip-V2/ArrayList.htm
http://caterpillar.onlyfun.net/Gossip/JavaGossip-V2/AnnotationSuppressWarnings.htm
--
良葛格學習筆記
http://caterpillar.onlyfun.net/Gossip/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.80.140.136
※ 編輯: JustinHere 來自: 219.80.140.136 (09/20 09:54)
※ 編輯: JustinHere 來自: 219.80.140.136 (09/20 09:56)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 7 篇):