Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将其转换为相同对象类型的列表?
TreeSet<FieldBean> Fields = new TreeSet<FieldBean>();
谢谢
的构造函数之一ArrayList将集合作为参数,并用该集合中包含的项目填充列表:
ArrayList
List<FieldBean> list = new ArrayList<FieldBean> (fields);