<awangdev>205. Isomorphic Strings_1.java
public boolean isIsomorphic(String s, String t) {
        if (s == null || t == null || s.length() != t.length()) return false;
        Map<Character, Character> map = new HashMap<>();
        
        for (int i = 0; i < s.length(); i++) {
            char charS = s.charAt(i), charT = t.charAt(i);
            if (map.containsKey(charS)) {
                if (map.get(charS) != charT) return false; 
            } else {
                if (map.containsValue(charT)) return false; 
                map.put(charS, charT);
            }
        }
        
        return true;
    }
public boolean var_0 ( String var_2 , String var_3 ) {
  if ( var_2 == null || var_3 == null || var_2 . length ( ) != var_3 . length ( ) ) return false ;
  Map < Character , Character > var_9 = new HashMap < > ( ) ;
  for ( int var_11 = 0 ;
  var_11 < var_2 . length ( ) ;
  var_11 ++ ) {
    char var_13 = var_2 . charAt ( var_11 ) , var_14 = var_3 . charAt ( var_11 ) ;
    if ( var_9 . containsKey ( var_13 ) ) {
      if ( var_9 . get ( var_13 ) != var_14 ) return false ;
    }
    else {
      if ( var_9 . containsValue ( var_14 ) ) return false ;
      var_9 . put ( var_13 , var_14 ) ;
    }
  }
  return true ;
}
