<awangdev>796. Rotate String_1.java
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;
    }
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 ;
  }
  if ( var_2 . equals ( var_3 ) ) {
    return true ;
  }
  StringBuffer var_8 = new StringBuffer ( var_2 ) ;
  for ( char var_10 : var_2 . toCharArray ( ) ) {
    var_8 . deleteCharAt ( 0 ) ;
    var_8 . append ( var_10 ) ;
    if ( var_8 . toString ( ) . equals ( var_3 ) ) {
      return true ;
    }
  }
  return false ;
}
