Code example for InetSocketAddress

Methods: toString

0
        return address;
    } 
     
    public String toString()
    { 
        return address.toString();
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java