public static boolean startsWith(char s[],int len,String prefix){
  final int prefixLen=prefix.length();
  if (prefixLen > len)   return false;
  for (int i=0; i < prefixLen; i++)   if (s[i] != prefix.charAt(i))   return false;
  return true;
}

public static boolean startsWith ( char s [ ] , int len , String prefix ) { final int prefixLen = prefix . length ( ) ; if ( prefixLen > len ) return false ; for ( int i = 0 ; i < prefixLen ; i ++ ) if ( s [ i ] != prefix . charAt ( i ) ) return false ; return true ; }
returns true if the character array starts with the suffix .
