A Program That Prints the Address of 216.58.220.4


A Program That Prints the Address of 216.58.220.4

Program

import java.net.*;
public class Address {
public static void main (String[] args) {
try {
InetAddress address = inetAddress.getByName("216.58.220.4");
System.out.println(address);
}
catch (UnknownHostException e) {
System.out.println("Could not find 192.168.64.3 ");
}
}
}




Output:

www.google.com/216.58.220.4


Share:

0 comments