comefrom: <awangdev>796. Rotate String_1.java
code: public boolean rotateString(String A, String B) {
          if (A == null || B == null || A.length() != B.length()) {
              return false;
          }
          if (A.equals(B)) {
              return true;
          }
          StringBuffer sb = new StringBuffer(A);
          for (char c : A.toCharArray()) {
              sb.deleteCharAt(0);
              sb.append(c);
              if (sb.toString().equals(B)) {
                  return true;
              }
          }
          return false;
      }
masked: public boolean var_0 ( String var_1 , String var_2 ) {
    if ( var_1 == null || var_2 == null || var_1 . length ( ) != var_2 . length ( ) ) {
      return false ;
    }
    if ( var_1 . equals ( var_2 ) ) {
      return true ;
    }
    StringBuffer var_3 = new StringBuffer ( var_1 ) ;
    for ( char var_4 : var_1 . toCharArray ( ) ) {
      var_3 . deleteCharAt ( 0 ) ;
      var_3 . append ( var_4 ) ;
      if ( var_3 . toString ( ) . equals ( var_2 ) ) {
        return true ;
      }
    }
    return false ;
  }
  