Here you can find the source of startsWithAcronym(String word)
public static boolean startsWithAcronym(String word)
//package com.java2s; //License from project: Open Source License public class Main { private static final String ALPHANUMERIC_REGEX = "^[a-zA-Z0-9]*$"; public static boolean startsWithAcronym(String word) { return word.length() >= 2 && Character.isUpperCase(word.charAt(0)) && Character.isUpperCase(word.charAt(1)) && word.matches(ALPHANUMERIC_REGEX); }/*from www . ja v a 2s .c o m*/ }