I have to put all the enum elements into my newly created list.
The enum is created in class enum as shown below
public enum salesStatus {
OPEN, BIDDING, ON_HOLD, CLOSED
}
public class MainClass{
List list = new List();
}
trouble is , how do i put all the OPEN, BIDDING, ON_HOLD, CLOSED
into the list.
Thanks
The enum is created in class enum as shown below
public enum salesStatus {
OPEN, BIDDING, ON_HOLD, CLOSED
}
public class MainClass{
List list = new List();
}
trouble is , how do i put all the OPEN, BIDDING, ON_HOLD, CLOSED
into the list.
Thanks