使用反射技術往集合中添加不一樣類型的數據

public class TestException { public static void main(String[] args) throws Exception { List<String> list= new ArrayList<String>(); list.add("A"); list.add("B"); Class c = list.getClass();
相關文章
相關標籤/搜索