Menu
Question Index
...

Write a program to find the two string are equals or not by ignore the case.

Input (Input string1, Input string2) Output
MERITCAMPUS
mericcampus
true
AndhraPradesh
ANDHRApradesh
true
Virat Kohli
virat KoHlI
true
""
""
true
null
null
true
Apple
Mango
false
Boy
Girl
false



class Stringcomparisionbyignorecase
{
    public static void main(String s[])
    {
        String inputString1 = "MeritCampus";
        String inputString2 = "meritcampus";
        boolean result = areStringsEqualsByIgnoreCase(inputString1, inputString2);
        System.out.println("The input strings "+inputString1+ " and "+inputString2+" are equals : "+result);

    }


        public static boolean areStringsEqualsByIgnoreCase(String inputString1, String inputString2)
        {
            boolean result = false;
            return result;
        }

}

Doubts

Problems

Topic: Java String Comparison Methods - Equals and EqualsIgnoreCase

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App