public String toString() { StringBuffer sb; if (hostName != null) sb = new StringBuffer(hostName).append('/'); else if (hostname_alias != null) sb = new StringBuffer(hostname_alias).append('/'); else sb = new StringBuffer();  sb.append(getHostAddress()); return (sb.toString()); }
public String toString() { String addr = getHostAddress(); String host = (hostName != null) ? hostName : ""; return host + "/" + addr; }
    public String toString() {        StringBuffer sb;        if (hostName != null)            sb = new StringBuffer(hostName).append('/');        else if (hostname_alias != null)            sb = new StringBuffer(hostname_alias).append('/');        else            sb = new StringBuffer();        sb.append(getHostAddress());        return (sb.toString());    }