Comparaison between 2 string : <p>I want to compare two String for exemple str="abc" and str2="bca" or str3="bac" are all twins (contains the same char)
i have this code </p>

<pre><code>package com.hr.access.chaine;

public class ChaineCaractere {

public static void main(String[] args) {
    System.out.println(Solution.isTwin("hello", "world"));// false
    System.out.println(Solution.isTwin("abc", "cab"));// true
    System.out.println(Solution.isTwin("Lookout", "outlook"));// true
}  }
</code></pre>

<p>and the other class for Solution.isTwins is there </p>

<pre><code>package com.hr.access.chaine;

public class Solution {

public static boolean isTwin(String a, String b) {
    int longA = a.length();
    int longB = b.length();
    boolean retourneValeur;
    if (longA != longB) {
        System.out.println("Le deux chaine ne sont pas jumeau");
        retourneValeur = false;
    } else {

        // I want to add the code in this place to compare into two string 

     retourneValeur = true;
    }

    return retourneValeur;
}}
</code></pre>

<p>I want to add the another code in the bloc of else and i will affect this if the two string are twins or no
Help me please my friend :)  </p>
