troubleshooting Question

Comparinf values in array in java

Avatar of ane4ka
ane4ka asked on
4 Comments2 Solutions250 ViewsLast Modified:

How do I compare values within two array in java.

Let's say we have the following two lists od strings:

["a", "b", "d"]

["a", "b", "c", "e"]

There could be 3 conditions:

1.  Value could be in two arrays (ex. a,b)
2.  Value could be only in first aray (ex. d)
3.  Value could be only in second array. (ex. c,e)

I need to identify one of the three conditions for each value in both array.  How can I doi tprogramaticly in java.

Thanks in advance!
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros