【发布时间】:2014-02-06 11:01:14
【问题描述】:
我可以更改变量的描述吗?
我想在这个地方看到我自己的字符串。我想自己生成这个字符串。 例如
"RTKAccount number=111 and FGSFDS"
在
"RTKAccount (id=830039244504)".
我尝试在课堂上更改toString() 方法,但没有成功。
public String toString() {
return "RTKAccount id=" + this.id + " number=" + this.number;
}
【问题讨论】:
-
你的问题很不清楚,至少对我来说。能详细点吗?
-
您是否尝试过单击数组成员左侧的加号来查看每个对象的字段?
-
我尝试点击那个加号,但这不是我想要的。
标签: java eclipse debugging variables