Skip to content

StringUtils.isAllUpperCase

Signature: StringUtils.isAllUpperCase(inputString)

Returns: Boolean result - true if inputString contains only uppercase letters and is not empty

Checks if the inputString contains only uppercase letters. null or empty ("") string will return false.

Parameters

Type Name Description Default
String inputString the String to check, may be null

Example

StringUtils.isAllUpperCase('SPACES ARE NOT UPPERCASE');                // false
StringUtils.isAllUpperCase('IFALLTHELETTERSAREUPPERCASEYOUAREGOLDEN'); // true