5 static void output (InetAddress addr) {
7 System.out.println("address is null");
9 System.out.println("inet address is " + addr.toString() );
13 public static void main(String a[]) throws IOException {
15 System.out.println("hostname is " + a[0] );
17 output(InetAddress.getByName (a[0]));
19 output(InetAddress.getLocalHost());
22 System.out.println("Catched error " + t.toString() );