+ 1

Java. Braces in the output! How to remove?

Problem is, that when I running this code, instead of printing the braces. How to print the output without them? Car [make=make1, model=model1, year=2005, price=123456.0, color=green] Car [make=make2, model=model2, year=2002, price=223456.0, color=blue] Car [make=make3, model=model3, year=2008, price=430092.0, color=Red] Here is the code https://code.sololearn.com/c8J2df6s1alu Thank you in advance for the help!

18th Jun 2018, 12:59 AM
DIY Mods
DIY Mods - avatar
3 Answers
18th Jun 2018, 1:17 AM
Nitish kumar jha
Nitish kumar jha - avatar
+ 10
Actually its you who added those square braces. Inspect what the function returns at line 80 and 81 in the code you linked.
18th Jun 2018, 1:29 AM
Dev
Dev - avatar
+ 1
excellent! thank you so much!
18th Jun 2018, 1:19 AM
DIY Mods
DIY Mods - avatar