Output ArrayList to String without [,] (brackets) appearing

后端 未结 10 1263
你的背包
你的背包 2020-12-17 10:30

OK, so I have an ArrayList that I need to return as a String. Right now I am using this approach:

List customers = new ArrayList<>();
L         


        
10条回答
  •  清酒与你
    2020-12-17 11:13

    You can override the toString() method and represent the output in whatever format you

提交回复
热议问题