<awangdev>Shortest Palindrome_1.java
private boolean validateSubstring(String s, int i, int j) {

        String end = s.substring(j).toString();
        String front = new StringBuffer(s.substring(0, i + 1)).reverse().toString();
        if (front.length() <= end.length() && end.indexOf(front) == 0) {
            return true;
        }
        return false;
    }
private boolean var_0 ( String var_2 , int var_3 , int var_4 ) {
  String var_7 = var_2 . substring ( var_4 ) . toString ( ) ;
  String var_12 = new StringBuffer ( var_2 . substring ( 0 , var_3 + 1 ) ) . reverse ( ) . toString ( ) ;
  if ( var_12 . length ( ) <= var_7 . length ( ) && var_7 . indexOf ( var_12 ) == 0 ) {
    return true ;
  }
  return false ;
}
