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
Your code works fine, but it looks like you’re printing the wrong thing. Do this instead:
Printing just an array will give you output like what you’re seeing.