public int wordsCount(String[] words, int len) {
int counter = 0;
for (String s : words) {
if (s.length()==len) {
counter++;
}
}
return counter;
}
Here I am trying to find the number of strings and the length of the inputs given