You should declare your list as a list of string arrays, not a list of strings:
List<String[]> veri1 = new ArrayList<String[]>();
String[] veri2 = {"Fatih", "Ferhat", "Furkan"};
veri1.add(veri2);
Note that, in general, it is better to declare your list as Listinstead ArrayList, as this leaves you with the opportunity to switch to another implementation of the list later.
source
share