Create a class, ObjCompare, with a simple generic method, compareObj that compares any two Objects whose class implements Comparable. The compareObj method must use the equals() method of the Comparable objects, and return true if they are equal; otherwise, it returns false. Test your class by comparing two Integers, two Doubles, two Strings, and two Characters. What happens when you attempt to compare diverse types? For instance, try comparing an Integer to a Double; and try comparing an Integer to a String. Provide a driver in a separate source file to test your class. Partial sample output:
1 is NOT equal to 0
1 is equal to 1
1.0 is NOT equal to -2.2
1.0 is equal to 1.0
Welcome is NOT equal to Home
Welcome is equal to Welcome
& is NOT equal to #
& is equal to &