ArrayList.toString().replace(" ", ""); ArrayList 的 toString 输出的格式是 [1, 2, 3],只要把空格替换成空就可以了。数组的话也是类似的。
点赞 评论

相关推荐

牛客网
牛客企业服务