Ask Question
31 December, 15:11

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;

+2
Answers (1)
  1. 31 December, 15:57
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers