Hi guys ,i'm working on a project and i have to use enumeration to return the list of customers inside a mall, i'm using a vector to hold the customers.here's the code i've wrriten ,plz help if you can.

here's the method that returns the enumeration

cutomers is the vector object

public Enumeration Customers ()
{
Enumeration enu= this.customers.elements();
return enu;
}

and when i call it from the main class,it reutrns nothing ,like if the list is empty,which is not the case.


JOptionPane.showMessageDialog(null,""+myMall.Custo mers().hasMoreElements()) ==> return false in the first call.