publicclass B6469803 { publicstaticvoid main(String[] args) {
InetSocketAddress addr = new InetSocketAddress("192.168.1.1", 12345);
String s = addr.getHostString(); if (!s.equals("192.168.1.1")) thrownew RuntimeException("getHostString() returned the wrong string: " + s );
addr = new InetSocketAddress("localhost", 12345);
s = addr.getHostString(); if (!s.equals("localhost")) thrownew RuntimeException("getHostString() returned the wrong string: " + s);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.