The method must now ask for the customer name. If the customer is part of the loyalty program the
method must update the arrays according to this purchase. How to check the customer is already exist in the string array?
1
Expert's answer
2011-12-20T11:28:01-0500
Fot example we have:
String[] customers;
Strung customer;
but with some value;
to check if the customer exist use following:
if (Arrays.asList(customers).contains(customer)) return true;
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment