import
java.io.*;
import
java.net.*;
import
java.util.*;
public class
compare_two_url
{
public static void main(String arg[]) throws
Exception
{
Scanner sc = new Scanner(System.in);
System.out.println();
System.out.print("Enter the First URL :
");
String str1 = sc.next();
System.out.print("Enter the Second URL
: ");
String str2 = sc.next();
System.out.println();
URL url1 = new URL(str1);
URL url2 = new URL(str2);
Boolean b = url1.sameFile(url2);
System.out.println("Boolean Values :
" +b.toString());
}
}
OUTPUT