阅读背景:

Java - 获取类中属性的值

来源:互联网 

Suppose this piece of code:

假设这段代码:

public class Int {
    public int value;

    public Int () {
        this.value = 0;
    }

    public Int (int value) {
        this.value = value;
    }

    @Override
    public String toString () {
        return Integer.valueOf (this.value).toString ();
    }
}
public 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: