Java String Starts Wtih startsWithSeveralUpperCaseLetters(String string)

Here you can find the source of startsWithSeveralUpperCaseLetters(String string)

Description

starts With Several Upper Case Letters

License

Apache License

Declaration

private static boolean startsWithSeveralUpperCaseLetters(String string) 

Method Source Code

//package com.java2s;
/*/*from   ww w .  ja va 2  s. c  o  m*/
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
 */

public class Main {
    private static boolean startsWithSeveralUpperCaseLetters(String string) {
        return string.length() > 1 && Character.isUpperCase(string.charAt(0))
                && Character.isUpperCase(string.charAt(1));
    }
}

Related

  1. startsWithPhraseSeparator(char[] token)
  2. startsWithPrefix(final String methodName, final String prefix, final int prefixLength)
  3. startsWithPrefix(String inputText, String[] prefixes)
  4. startsWithQuote(String str)
  5. startsWithSeparator(String str)
  6. startsWithSlash(String path)
  7. startsWithSlash(String url)
  8. startsWithSpace(String s)
  9. startsWithSpaces(final String text)