Skip to content

StringUtils.length

Signature: StringUtils.length(inputString)

Returns: Integer length - the inputString length or 0 if the inputString is null

Gets the length of inputString or 0 if the inputString is null.

Parameters

Type Name Description Default
String inputString a String or null

Example

StringUtils.length('supercalifragilisticexpealidocious'); // 34