Ask Question
14 April, 00:04

Assume that partNumber references a String object. The following if statement should perform a case-insensitive comparison. What is wrong with it? if (partNumber. equals ("BQ789W4")) available = true;

+5
Answers (1)
  1. 14 April, 01:22
    0
    A case sensitive comparission better to use library function strcmp ().

    Explanation:

    The part number references are string objects. In order to perform a case sensitive comparission? it is going to be better if one make use of a library function strcmp ().

    This will work best for a part number reference consideringthe fact that it is a string object. This is simply because, string objects are best implemented using library function when the string object happens to be used in a case sensitive comparison.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Assume that partNumber references a String object. The following if statement should perform a case-insensitive comparison. What is wrong ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers