8.17
Assignment 13: Loops
Goals: Practice using loops.
You should submit one .java file containing the solution to this problem.
Exercises
Design a static which given an array list of strings returns all of those strings appended to each other. Use a for-each loop. Do not use a pre-defined abstraction.
Design a static method which given an array list of strings and a string returns the first index of that string. Do not use indexOf or similar methods. If that string is not present, return -1. Use an indexed for loop.
Hint: Methods can return at any moment.
Design a static method which given a list of strings returns the string with the longest consecutive streak. If the list is empty, return the empty string. Use while loops.