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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!