salman1354 0 Newbie Poster

Hello all,
I have a question on using ArrayList class.

Basically, I have a class called Customer as follows:

class Customer {
    int ident;
    float value;
    float newValue;
public:
    void setIdent( int );
    int getIdent() const;
    void setValue( float );
    float getValue() const;
    void setNewValue( float );
    float getNewValue() const;
}

Then I have another class Order that links to the objects of the Customer class and sorts them based on their ident or based on their value, and manipulates their data member newValue using the Customer::setNewValue. The problem is I have a lot of customers (1000+) whose number is to be determined during runtime.

What is the proper way of doing this inside the class Order using ArrayList?

Thanks
Salman