<gouthampradhan>string_IsomorphicStrings_1.java
public boolean isIsomorphic(String s, String t) {
    if (s.length() != t.length()) return false;
    Map<Character, Character> first = new HashMap<>();
    Map<Character, Character> second = new HashMap<>();
    for (int i = 0; i < s.length(); i++) {
      char c = s.charAt(i);
      if (first.containsKey(c)) {
        char secondC = first.get(c);
        if (t.charAt(i) != secondC) return false;
      } else {
        first.put(c, t.charAt(i));
        if (second.containsKey(t.charAt(i))) return false;
        second.put(t.charAt(i), c);
      }
    }
    return true;
  }
public boolean var_0 ( String var_2 , String var_3 ) {
  if ( var_2 . length ( ) != var_3 . length ( ) ) return false ;
  Map < Character , Character > var_8 = new HashMap < > ( ) ;
  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 ) ;
    if ( var_8 . containsKey ( var_13 ) ) {
      char var_16 = var_8 . get ( var_13 ) ;
      if ( var_3 . charAt ( var_11 ) != var_16 ) return false ;
    }
    else {
      var_8 . put ( var_13 , var_3 . charAt ( var_11 ) ) ;
      if ( var_9 . containsKey ( var_3 . charAt ( var_11 ) ) ) return false ;
      var_9 . put ( var_3 . charAt ( var_11 ) , var_13 ) ;
    }
  }
  return true ;
}
