Source Code : Check Equality for two strings with Collator
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Check Equality for two strings with Collator
import java.text.Collator;
import java.util.Locale;
public class Main {
public static void main(String args[]) {
String s1 = "";
String s2 = "";
Collator frCollator = Collator.getInstance(Locale.FRANCE);
frCollator.setStrength(Collator.SECONDARY);
if (frCollator.compare(s1, s2) == 0) {
System.out.println("s1 = s2");
}
}
}
//s1 = s2
Thank with us