标签:art express imp java import 关于 使用 must The
正常使用 list List<Vertex> vertices = new ArrayList<Vertex>;
但是报错 The type of the expression must be an array type but it resolved to List<Vertex>
原因:
应该导入 :import java.util.*;
同时检查一下有没有 import 其他的 List.比如 java.awt.List。有的话,去掉。
这里有一篇关于java.util.List;与java.awt.List;的区别
https://blog.csdn.net/haiyoung/article/details/50719282
The type of the expression must be an array type but it resolved to List<Vertex>
标签:art express imp java import 关于 使用 must The
原文地址:https://www.cnblogs.com/blairwaldorf/p/8999754.html