How do I determine whether an array contains a particular value in Java

0 votes

I have this string pattern

public static final String[] Values = new String[] {"AB","BC","CD","AE"};

Provided the string s, is there a good way to test if Values contain s?

Jul 28, 2022 in Java by krishna
• 2,820 points

edited 5 days ago 7 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP