Hello friends,
I am new to java and enum use. Actually I need to give only 3 options to customer for Payment Type. So i thought of using enum and making the limited members of Payment
enum PaymentType
{
CHEQUE,
CREDITCARD,
CASH
};
public void Customer(String name, PaymentType paymentType)
{
//select which paymentType he opted
}
but i dont know how to implement enum for making option like that. please can anyone guide me.