I have a custom object defined here:
public class ContactObject {
    public String contactName;
    public String contactNo;
    public String image;
    public boolean selected;
    public String getName() {
        return contactName;
    }
    public void setName(String contactName) {
        this.contactName = contactName;
    }
    public String getNumber() {
        return contactNo;
    }
    public void setNumber(String contactNo) {
        this.contactNo = contactNo;
    }
    public String getImage() {
        return image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public boolean isSelected() {
        return selected;
    }
    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
And I have populated an ArrayList of this custom object (binderContacts) but now I want to convert this to a normal ArrayList with a list of all the contactNo's in my array list. Can someone help here?
public class ContactsListClass {
    public static final ArrayList<ContactObject> phoneList = new ArrayList<ContactObject>();
    public static final ArrayList<ContactObject> binderContacts = new ArrayList<ContactObject>();
}
 
     
    