Friday, October 17, 2014

Comparing String To Array Element ?
































































































































I have the following code:
































































































































































































Java Code:







































































































































public class Equals {

String[] s1 = {"red", "white", "black", "blue"};
String[] s2 = {"red", "black", "green"};
String[] s3 = {"red", "green"};





































































































































What I need is to give me the following output:































































Select Strings:































































































































s1,s2,s3
































































































































Comparing String s1, s2, s3
































































































































red 3 matches.































































































































black 2 matches.































































































































green 2 matches.
































































































































Someone can help me?
































































































































Thanks a lot!
































































































































Greetings!































































































































































































































































No comments:

Post a Comment