private static Set<String> jaccardSet(String strA){
  Set<String> set=new HashSet<>();
  for (int i=0, sz=strA.length(); i < sz; i+=2) {
    int end=Math.min(i + 2,sz);
    String s=strA.substring(i,end);
    set.add(s);
  }
  return set;
}

private static Set < String > jaccardSet ( String strA ) { Set < String > set = new HashSet < > ( ) ; for ( int i = 0 , sz = strA . length ( ) ; i < sz ; i += 2 ) { int end = Math . min ( i + 2 , sz ) ; String s = strA . substring ( i , end ) ; set . add ( s ) ; } return set ; }
convert a string to a set .
