Friday, May 27, 2005

toString

Program

public String toString() {
    return getClass().getName() + "@" + Integer.toHexString(hashCode());
}

Source: Object.java (Sun Microsystems 2006).

No comments: