Skip to content
Advertisement

Print a string from ArrayList of String[] per Index?

How to print ArrayList of String[] into String per index with expected Output like this

JavaScript

Here is the code and how to print it?

JavaScript

Advertisement

Answer

You were pretty close to it:

JavaScript

This generates your String to be outputted. Printing:

JavaScript

Just don’t forget to initialize yourArrayList prior of the method call.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement