I really need some help. I have a List which has 4 columns and 4 rows. I did something like this:
if(list.size()!=0){
Iterator it = list.iterator();
while(it.hasNext()){
System.out.println(it.next().toString());
}
}
I also tried this:
for(int i=0; i<list.size(); i++) {
System.out.println(list.get(i));
}
but both has the same result:
[Ljava.lang.Object;@58e6b9bc
[Ljava.lang.Object;@13ac133d
[Ljava.lang.Object;@62313e2
[Ljava.lang.Object;@68ee5d93
I have no problem with one dimensional List but with multidimensional I really have headache. Please help.
Seems like your list contains Object Array as elements.
This means the Object you are trying to print is array. To get complete content of list you have to also iterate over this object arrays (each element of list). Try this: