@Override public String toString(){
  StringBuilder sb=new StringBuilder(25);
  sb.append("[");
  sb.append(name);
  sb.append("][");
  sb.append(interfaceIndex);
  sb.append("]");
  for (  InetAddress address : addresses) {
    sb.append("[");
    sb.append(address.toString());
    sb.append("]");
  }
  return sb.toString();
}

@ Override public String toString ( ) { StringBuilder sb = new StringBuilder ( 25 ) ; sb . append ( "[" ) ; sb . append ( name ) ; sb . append ( "][" ) ; sb . append ( interfaceIndex ) ; sb . append ( "]" ) ; for ( InetAddress address : addresses ) { sb . append ( "[" ) ; sb . append ( address . toString ( ) ) ; sb . append ( "]" ) ; } return sb . toString ( ) ; }
returns a string containing details of this network interface . the exact format is deliberately unspecified . callers that require a specific format should build a string themselves , using this class ' accessor methods .
