Which of the following expressions could be used to perform a case-insensitive comparison of two String objects named str1 and str2?

a. str1.equalsIgnoreCase(str2)
b. str1.equalsInsensitive(str2)
c. str1 != str2
d. str1 || str2

a. str1.equalsIgnoreCase(str2)

Computer Science & Information Technology

You might also like to view...

A report is more meaningful if its data is sorted and grouped

Indicate whether the statement is true or false

Computer Science & Information Technology

Repeat the analysis in part (c) using P(A = 1), P(B = 0), and P(A = 1, B = 0).

Consider the data set shown in Table 5.2.

Computer Science & Information Technology