Removing square brackets from ArrayList | Sololearn: Learn to code for FREE!

0

Removing square brackets from ArrayList

How can I remove square brackets when printing an ArrayList or how can I edit the formatting of the elements printing in ArrayLIst? I dont want this output : [Red,Blue,Green]

12/5/2017 7:48:03 AM

Usama Zafar

5 Answers

New Answer

0

https://code.sololearn.com/cbVpwLv794C8/?ref=app

0

Where do I have to write that toString method? in my own class?