Here is what I\'m trying to use. The method .length doesn\'t work for anything I try, so I\'m not even sure where to begin.
import java.util.ArrayList; public c
Use following code:
public static List lengths(List list) { List lengthList = new ArrayList(); for (String nums: list) { int len = nums.length(); lengthList.add(len); System.out.println(len); } return lengthList; }