12. Given that String implements java.lang.CharSequcnce, and:
import java.util.* ;
public class LongWordFinder {
public static void main(String [] args) {
String[] array = { "123", "12345678", "1", "12", "1234567890"};
List list = Arrays.asList(array);
Collection resultList = getLongWords(list);
}
// INSERT DECLARATION HERE
{
Collection longWords = new ArrayList();
for (E word : coll)
if (word.length() > 6) longWords.add(word);
return longWords;
}
}
Which declarations could be inserted at // INSERT DECLARATION HERE so that the program will compile and run? (Choose all that apply.)