Hello All,
I'm hoping someone can help here. I'm trying to count how many times a string occurs in an array. Here is the code I have ...
String animals[] = {"Cat", "Cat", "Dog", "Dog", "Fish"};
String animalSingle[] = {"Cat", "Dog", "Fish"};
count = 0;
for (int i = 0; i <...