how can I convert this to a List of the same object type?
TreeSet<FieldBean> Fields = new TreeSet<FieldBean>();
Thanks
how can I convert this to a List of the same object type?
TreeSet<FieldBean> Fields = new TreeSet<FieldBean>();
Thanks
One of the constructors of ArrayList
takes a collection as an argument and fills the list with the items contained in that collection:
List<FieldBean> list = new ArrayList<FieldBean> (fields);