<awangdev>Word Ladder_3.java
public int compare(String s1, String s2) {
      int count = 0;
      for (int i = 0; i < s1.length(); i++) {
        count += s1.charAt(i) != s2.charAt(i) ? 1 : 0;
        if (count > 1) {
          return count;
        }
      }
      return count;
    }
public int sample_funcname ( String var_1 , String var_2 ) {
  int var_4 = 0 ;
  for ( int var_5 = 0 ;
  var_5 < var_1 . length ( ) ;
  var_5 ++ ) {
    var_4 += var_1 . charAt ( var_5 ) != var_2 . charAt ( var_5 ) ? 1 : 0 ;
    if ( var_4 > 1 ) {
      return var_4 ;
    }
  }
  return var_4 ;
}
