我在一个ArrayList里面add一个Object总是有下面的警告,是什么原因呢?
Note: E:\Java练习\P2PQQ\src\client\Login.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: E:\Java练习\P2PQQ\src\client\Login.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ArrayList<String> list = new ArrayList<String>();
将元素从list中取出时也不需要类型转换了
早日成才, *^_^* .