src/main/java/seedu/address/bot/ArkBot.java
public ArrayList<DisplayParcel> formatParcelsForBot(ObservableList<ReadOnlyParcel> parcels) {
        ArrayList<DisplayParcel> toDisplay = new ArrayList<>();

        Iterator<ReadOnlyParcel> parcelIterator = parcels.iterator();

        while (parcelIterator.hasNext()) {
            ReadOnlyParcel currParcel = parcelIterator.next();
            DisplayParcel displayed = new DisplayParcel(currParcel.getName(), currParcel.getAddress(),
                    currParcel.getPhone());
            toDisplay.add(displayed);
        }

        return toDisplay;
    }
/**
     * Filters the list of parcels to only show Name, Address and Phone number
     * attributed to each parcel.
     */
Filters the list of parcels to only show Name, Address and Phone number
attributed to each parcel.
Filters the list of parcels to only show Name Address and Phone number attributed to each parcel .
public ArrayList<DisplayParcel> formatParcelsForBot(ObservableList<ReadOnlyParcel> parcels) {
        ArrayList<DisplayParcel> toDisplay = new ArrayList<>();
        Iterator<ReadOnlyParcel> parcelIterator = parcels.iterator();
        while (parcelIterator.hasNext()) {
            ReadOnlyParcel currParcel = parcelIterator.next();
            DisplayParcel displayed = new DisplayParcel(currParcel.getName(), currParcel.getAddress(),
                    currParcel.getPhone());
            toDisplay.add(displayed);
        }
        return toDisplay;
    }
public ArrayList < DisplayParcel > formatParcelsForBot ( ObservableList < ReadOnlyParcel > parcels ) { ArrayList < DisplayParcel > toDisplay = new ArrayList < > ( ) ; Iterator < ReadOnlyParcel > parcelIterator = parcels . iterator ( ) ; while ( parcelIterator . hasNext ( ) ) { ReadOnlyParcel currParcel = parcelIterator . next ( ) ; DisplayParcel displayed = new DisplayParcel ( currParcel . getName ( ) , currParcel . getAddress ( ) , currParcel . getPhone ( ) ) ; toDisplay . add ( displayed ) ; } return toDisplay ; }
Filters the list of parcels to only show Name, Address and Phone number
 attributed to each parcel.
Filters the list of parcels to only show Name Address and Phone number attributed to each parcel .