List<Object> list = new ArrayList<Object>();
List<Object> l = new ArrayList<Object>();
for (int i = 0; i < list.size(); i++) {
Object[] row = (Object[]) list.get(i);
l.add(Arrays.toString(row));
System.out.println("Element " + i + l);
}
According the that code, output is like that
[Air Bükreş, BU, BUR, [email protected], Doküman Paylaşımı, E-posta]
But I need like that seperately
Air Bükreş
BU
BUR
Doküman Paylaşımı
E-posta
I want it without '[' and ']'
Arrays.toString(). It will comma separate the array and add the [] characters.List<Object>orList<Object[]>?Object[]can be aObjectrowyour way.could bedeclared as such for more readability.