List<String[]> list = new ArrayList<String[]>();
String str = "a b c";
list.add(str.split(" "));
Basically I want an array of {a, b, c} however this isn't working. Do I have to iterate and load each element instead? How would I do this?
My error output looks like this:
[Ljava.lang.String;@3d4b7453
[Ljava.lang.String;@24c21495
{a,b,c}what is theListfor? Are you trying deliberately to populate the list with arrays?a b c. I want to loop through them and store it all in a list of arrays.