String Question 18

Home / Java Practice Question / String Question 18

String Question 18


WAP to check the  two strings for equality.....

Program : 

public class StringPractise {

public static boolean equalString(String str1 , String str2){
        if(str1.equals(str2)){
return true;
}
else{
return false;
}
    }