Class StringUtils

java.lang.Object
net.paulem.arcana.utils.StringUtils

public class StringUtils extends Object
Utility methods for working with strings.
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • capitalizeWords

      public static String capitalizeWords(String input)
      Capitalizes the first letter of every whitespace-separated word in the given string and lowercases the rest of each word.
      Parameters:
      input - the string to capitalize, may be null or empty
      Returns:
      the capitalized string, or input unchanged if it is null or empty