Im stumped on this .. im trying to state whether the first string is less than, equal to or greater than the second while ignoring the case using regionMatches. The program creates a GUI in which a "compare it" button is clicked for results. Just looking for some assistance or suggestions on the comparison part.
Compares two strings lexicographically, ignoring case considerations. This method returns an integer whose sign is that of this.toUpperCase().toLowerCase().compareTo( str.toUpperCase().toLowerCase()).
Parameters: str - the String to be compared. Returns: a negative integer, zero, or a positive integer as the the specified String is greater than, equal to, or less than this String, ignoring case considerations. Since: 1.2