<qiyuangong>771_Jewels_and_Stones_1.java
public int numJewelsInStones(String J, String S) {
        int result = 0;
        HashSet jHash = new HashSet<>();
        for (int j = 0; j < J.length(); j++) {
            jHash.add(J.charAt(j));
        }
        for (int s = 0; s < S.length(); s++) {
            if (jHash.contains(S.charAt(s))) {
                result++;
            }
        }
        return result;
    }
public int sample_funcname ( String var_1 , String var_2 ) {
  int var_4 = 0 ;
  HashSet var_6 = new HashSet < > ( ) ;
  for ( int var_7 = 0 ;
  var_7 < var_1 . length ( ) ;
  var_7 ++ ) {
    var_6 . add ( var_1 . charAt ( var_7 ) ) ;
  }
  for ( int var_11 = 0 ;
  var_11 < var_2 . length ( ) ;
  var_11 ++ ) {
    if ( var_6 . contains ( var_2 . charAt ( var_11 ) ) ) {
      var_4 ++ ;
    }
  }
  return var_4 ;
}
