how do i print the element \"e\" in arraylist \"list\" out?
ArrayList list = new ArrayList(); Dog e = new Dog(); list.add(e); Syste
7条回答 醉梦人生 (楼主) 2021-01-11 14:34 You should override toString() method in your Dog class. which will be called when you use this object in sysout. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 自定义标题段落格式字体字号代码语言点击上传x 验证码 看不清? 提交回复
You should override toString() method in your Dog class. which will be called when you use this object in sysout.
toString()
Dog
热议问题