public class list{
public static void main(String[] args) {
// TODO Auto-generated method stub
//Dynamic arraylist in which is input is dynamic like below is example
ArrayList<String[]> rows = new ArrayList<>();
rows.add(new String[]{"1","2","3"});
rows.add(new String[]{"1","2"});
rows.add(new String[]{"1"});
for (String[] now : rows) {
System.out.println(now);
}
}
}
I am receiving this output in console can anyone help how to print the dynamically changing length of array.
[Ljava.lang.String;@372f7a8d
[Ljava.lang.String;@2f92e0f4
[Ljava.lang.String;@28a418fc