Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.Collator;
import java.util.Locale;

public class Main {

    public static void main(String[] args) {
        Collator collator = Collator.getInstance(Locale.FRENCH);
        collator.setStrength(Collator.PRIMARY);

        if (collator.compare("d?b?rqu?r", "debarquer") == 0) {
            System.out.println("Both Strings are equal");
        } else {
            System.out.println("Both Strings are not equal");
        }
    }
}