Adapt the StringComparison program from Sect. 7.6.3, which compares two strings, in the following ways: (a) Rewrite the program so that it ignores case; (b) Rewrite the program, using the equals...

Adapt the StringComparison program from Sect. 7.6.3, which compares two strings, in the following ways: (a) Rewrite the program so that it ignores case; (b) Rewrite the program, using the equals method, so that all it does is to test whether the two strings are the same; (c) Repeat (b) using the equalsIgnoreCase method; (d) Use the trim method so that the program ignores leading or trailing spaces.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here