Menu
Question Index
...

Write a program to find the given two strings are equal or not, irrespective of case sensitivity.

Input (String, String) Output (Boolean)
'java', 'JAVA' true
'HYDERABAD', 'HYDERABAD' true
'Java School', 'JavaSchool' false
'MeritCampus', 'Merit Campus' false
'computer', 'CompuTer' true



class ComparingStrings
{
    public static void main(String s[])
    {
        String firstString = "java";
        String secondString = "JAAVA";
        System.out.println("Both are equals: " + areEquals(firstString, secondString));

    }


    public static boolean areEquals(String firstString, String secondString) {
    }

}

Doubts

Problems

Topic: Java equals method vs == Operator

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App