<gouthampradhan>string_ImplementStrStr_1.java
private boolean isEqual(String haystack, String needle, int i) {
    int hL = haystack.length();
    int nL = needle.length();
    int j = 0;
    while (i < hL && j < nL) {
      if (haystack.charAt(i) != needle.charAt(j)) return false;
      i++;
      j++;
    }
    return j >= nL;
  }
private boolean var_0 ( String var_2 , String var_3 , int var_4 ) {
  int var_6 = var_2 . length ( ) ;
  int var_7 = var_3 . length ( ) ;
  int var_9 = 0 ;
  while ( var_4 < var_6 && var_9 < var_7 ) {
    if ( var_2 . charAt ( var_4 ) != var_3 . charAt ( var_9 ) ) return false ;
    var_4 ++ ;
    var_9 ++ ;
  }
  return var_9 >= var_7 ;
}
