it may silly one but i really dont get this,because in inputs only numerical values are there and i add them to my list then how it is possible to print those brackets in output????????
How '[ ]' this bracket prints in output?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Sanjeevkumar
30 July 2020, 09:40
Thanks for the reply!
In this problem inputs are 1 2 3 4 5 and the output is somewhat #1 [] like this.
so here my next question arise, what should i do for printing the result string without containing brackets i.e [ ] .
+1
Guadalupe Gagnon
23 July 2020, 15:10
This is how ArrayLists are converted to String:
0