@Deprecated public class Strings extends Object
Constructor and Description |
---|
Strings()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
capitalize(String s)
Deprecated.
|
@Deprecated public static String capitalize(String s)
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("");
s
- the string whose first character is to be uppercasedNullPointerException
- if s is nullCopyright © 2000–2020 Apache Software Foundation. All rights reserved.