Programming Problem: Wild Equality
For this assignment you are to write a single class, with main included. The job of the class is as follows: you are to read in two strings from the keyboard, string1 and string2, and then you are to determine if string1 and string2 are equal, character for character. Your program should report its answer as true or false. Note that if the strings are different lengths, then they are definitely not equal.
There are two "catches" to the problem. First, capitalization in your solution should not matter. Thus if the strings are "dog" and "DoG", then your program should report true - they are equal. The second catch concerns a wild card symbol, here the character '*'. If * appears in one of the strings, then it can match any other character. So "Dog" and D*g" should be judged as equal, since the *, as a wild card, matches any other character, in this case the 'o'.
Dog and d** -> true
Dog and *** -> true
Dog and **** -> false (different lengths)
bla*k and B***k -> true
One further suggestion: use theScanner method nextLine() rather than the method next() for reading input.
Your solution should be in a single class containing main, and that class MUST BE called WildEquality. Enter (paste) your code in the box below. Note that the import statement for Scanner is provided. DO NOT include any import statements in the code you submit.