Java how to sort a list of array: List<String[]>
List<String[]> rows=new ArrayList<String[]>();
Collections.sort(rows);
Collections.sort(rows)
gives me the following errors:
Bound mismatch: The generic method sort(List<T>) of type Collections is not applicable for the arguments (List<String[]>).
The inferred type String[] is not a valid substitute for the bounded parameter <T extends Comparable<? super T>>