Java String.split (String) on regular expression with one or more whitespace characters provides “events” for the nominal case (when “events” really is the last characters in the provided String) and ...
// For a balanced substring with one char, any length works (all chars are equal) maxlen = Math.max(maxlen, getLength(s, 'a')); // Consider 'b' and 'c' maxlen = Math ...