text: 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;}