Curious question how do you search an element in a string array in java? I found how to make it a stack variable and then search it from the list, but how do you simply separate search the element IN the array without any extra steps.
EXAMPLE:
//search for the b’s in the array
String array[] = {"abc", "bcd", "nab"};
There are 2 a’s
There are 3 b’s
There are 2 c’s
There are 1 n’s