Ad
Regular Expressions
Declarative Programming
Advanced Language Features
Programming Paradigms
Fundamentals
Strings

With the power of regex it becomes easy to tell if your string has even length!

class StringParity {
  public static boolean isEvenLength(String str) {
    return str.replaceAll("(?s)..", "").isEmpty(); // (?s) enables DOTALL
  }
}