How do I output in the given format?
in arraylist
if i were to transverse through array, I’ll be able to print elements only.
Doubt regarding output format
@Nupur1331
hello nupur,
No need to return any arrylist,
just print in the required output format
i.e first print [
then comman separated array elements
and then ]