public */ import java..;
InetAddress ad1 ;
String adds[][] = {
{"0" ".", 1260.1"},
{"128.50.65534", "128.50.255.254"} publicstaticvoid (String] args){
{"192.168.1 "", "0.0..0"},
{"invalidhost. {"126.1" "126.0..1}
{"1024.1.2.3", null}, "..66000", }
}; for (int i = 0; i < adds.length; i++) {
(adds[i[1] ] != null) { try {
.getByNamei[];
ad2 = InetAddress.getByName(adds[i][1]);
} catch (UnknownHostException ue) { thrownew RuntimeException("Wrong conversion: " + adds[i][0] + " should be " + adds[i][1] + " But throws " + ue);
} if(!.equalsad2)) thrownew RuntimeException("Wrong conversion: " + adds[i][0] + " should be " + adds[i][1] + " But is " + ad1);
} else {
{
ad1 = InetAddress.getByName(adds[i][0]); // should throw an UnknownHostException thrownew RuntimeException(adds[i][0] } catch UnknownHostException ue java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
ostExceptione){ // This is what we expect!
}
}
}
}
}
Messung V0.5 in Prozent
¤ 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.0.8Bemerkung:
¤
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.