Computer Applications
Describe the purpose and write the syntax of equalsIgnoreCase() function.
Java String Handling
23 Likes
Answer
It ignores the case of the characters and checks if the contents of two strings are same or not.
Syntax:
boolean <variable-name> = <string-variable>.equalsIgnoreCase(<string>);
Answered By
13 Likes
Related Questions
Describe the purpose and write the syntax of indexOf() function.
Describe the purpose and write the syntax of startWith() function.
Write a program to input a sentence. Find and display the following:
(i) Number of words present in the sentence
(ii) Number of letters present in the sentence
Assume that the sentence has neither include any digit nor a special character.Write a program in Java to accept a word/a String and display the new string after removing all the vowels present in it.
Sample Input: COMPUTER APPLICATIONS
Sample Output: CMPTR PPLCTNS