package primer7; import java.net.*; public class Aliases { public static void main(String[] args) { try { InetAddress math = InetAddress.getByName("www.math.rs"); InetAddress rs = InetAddress.getByName("www.matf.bg.ac.rs"); if (math.equals(rs)) System.out.println("www.math.rs is the same as www.matf.bg.ac.rs"); else System.out.println("www.math.rs is not the same as www.matf.bg.ac.rs"); System.out.println(math); System.out.println(rs); } catch (UnknownHostException ex) { System.out.println("Host lookup failed"); } } }