<awangdev>1153. String Transforms Into Another String_1.java
public boolean canConvert(String str1, String str2) {
        if (str1.equals(str2)) return true;
        Map<Character, Character> map = new HashMap<>();
        
        for (int i = 0; i < str1.length(); i++) {
            char a = str1.charAt(i), b = str2.charAt(i);
            map.putIfAbsent(a, b);
            if (map.get(a) != b) return false;
        }
        
        return new HashSet<>(map.values()).size() < 26;
    }
public boolean var_0 ( String var_2 , String var_3 ) {
  if ( var_2 . equals ( var_3 ) ) return true ;
  Map < Character , Character > var_8 = new HashMap < > ( ) ;
  for ( int var_10 = 0 ;
  var_10 < var_2 . length ( ) ;
  var_10 ++ ) {
    char var_13 = var_2 . charAt ( var_10 ) , var_14 = var_3 . charAt ( var_10 ) ;
    var_8 . putIfAbsent ( var_13 , var_14 ) ;
    if ( var_8 . get ( var_13 ) != var_14 ) return false ;
  }
  return new HashSet < > ( var_8 . values ( ) ) . size ( ) < 26 ;
}
