[Solved] sort ArrayList using strin length [duplicate]
Do like this Collections.sort(list, new Comparator<String>() { @Override public int compare(String o1, String o2) { return o1.length()-o2.length(); } }); 4 solved sort ArrayList using strin length [duplicate]