How to compare non english characters with accents

前端 未结 4 888
既然无缘
既然无缘 2020-12-20 11:41

I want to compare 2 strings which have some non English character in them

String1 = debarquer
String2 = débárquér

On comparing above 2 str

4条回答
  •  醉梦人生
    2020-12-20 12:38

    There is a way to compare 2 strings values in java.

            if(String1.equals(String2))
            {
               System.out.println("Equal");
            }
            else
            {
               System.out.println("Not equal");
            }
    

提交回复
热议问题