<awangdev>String Permutation_1.java
public boolean Permutation(String A, String B) {
        if (A == null || B == null || A.length() != B.length()) {
            return false;
        }
        final Map<Character, Integer> strMap = new HashMap<>();
        for (int i = 0; i < A.length(); i++) {
            final char charA = A.charAt(i);
            final char charB = B.charAt(i);
            if (!strMap.containsKey(charA)) {
                strMap.put(charA, 0);
            }
            strMap.put(charA, strMap.get(charA) + 1);
            if (!strMap.containsKey(charB)) {
                strMap.put(charB, 0);
            }
            strMap.put(charB, strMap.get(charB) - 1);
        }
        for (Map.Entry<Character, Integer> entry : strMap.entrySet()) {
            if (entry.getValue() != 0) {
                return false;
            }
        }
        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 ;
  }
  final Map < Character , Integer > var_10 = new HashMap < > ( ) ;
  for ( int var_12 = 0 ;
  var_12 < var_2 . length ( ) ;
  var_12 ++ ) {
    final char var_14 = var_2 . charAt ( var_12 ) ;
    final char var_15 = var_3 . charAt ( var_12 ) ;
    if ( ! var_10 . containsKey ( var_14 ) ) {
      var_10 . put ( var_14 , 0 ) ;
    }
    var_10 . put ( var_14 , var_10 . get ( var_14 ) + 1 ) ;
    if ( ! var_10 . containsKey ( var_15 ) ) {
      var_10 . put ( var_15 , 0 ) ;
    }
    var_10 . put ( var_15 , var_10 . get ( var_15 ) - 1 ) ;
  }
  for ( Map . Entry < Character , Integer > var_21 : var_10 . entrySet ( ) ) {
    if ( var_21 . getValue ( ) != 0 ) {
      return false ;
    }
  }
  return true ;
}
