com.opensymphony.xwork2.inject.util

## Class Strings

- java.lang.Object
- - com.opensymphony.xwork2.inject.util.Strings

- Deprecated.

      @Deprecated
      public class Strings
      extends Object

  String utilities.
  Author:
    crazybob@google.com (Bob Lee)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Strings()` Deprecated.

  - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `capitalize(String s)` Deprecated.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Strings

          public Strings()

      Deprecated.

  - ### Method Detail

    - #### capitalize

          @Deprecated
          public static String capitalize(String s)

      Deprecated.
      Returns a string that is equivalent to the specified string with its first character converted to uppercase as by `String.toUpperCase(java.util.Locale)`. The returned string will have the same value as the specified string if its first character is non-alphabetic, if its first character is already uppercase, or if the specified string is of length 0.

      For example:

              capitalize("foo bar").equals("Foo bar");
              capitalize("2b or not 2b").equals("2b or not 2b")
              capitalize("Foo bar").equals("Foo bar");
              capitalize("").equals("");

      Parameters:
        `s` - the string whose first character is to be uppercased
      Returns:
        a string equivalent to `s` with its first character converted to uppercase
      Throws:
        `NullPointerException` - if `s` is null

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.