java程序中写入
List list = new ArrayList();
报错: Type mismatch: cannot convert from ArrayList to List
指明java.util包后就OK啦~
java.util.List list = new java.util.ArrayList();
java程序中写入
List list = new ArrayList();
报错: Type mismatch: cannot convert from ArrayList to List
指明java.util包后就OK啦~
java.util.List list = new java.util.ArrayList();