InetAddress instances as a means of matching host
names with IP addresses.
Given a host name in either symbolic or numerical form, this example prints out both versions of the host name, if it can determine them.
javac InetAddressExample.java
java InetAddressExample host1 host2 ...