Question: 1. Create a java method that takes in a String arraylist and counts the number of elements that aren't empty strings. The count ends at
1. Create a java method that takes in a String arraylist and counts the number of elements that aren't empty strings. The count ends at the first occurance of the empty string after the sequence. So [" ", "Hi", "Hi" , "Hi", "Hi"," ", "Hi", "Hi", "Hi"] should return 4.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
