List <Object> 和List<String> 是同种类型List,只是泛型实参不同.方法参数中,泛型类型必须相同void print(ArrayList<Object> c) { for (Object o : c) ...
確定! 回上一頁