Here you can find the source of startsWithSeveralUpperCaseLetters(String string)
private static boolean startsWithSeveralUpperCaseLetters(String string)
//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)); } }