public class StringUtils extends Object
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
capitalize(String name)
Utility method to take a string and convert it to normal a string
with the first character in upper case.
|
static String |
decapitalize(String name)
Utility method to take a string and convert it to normal Java variable
name capitalization.
|
public static String decapitalize(String name)
Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays as "URL".
name
- The string to be decapitalized.public static String capitalize(String name)
Thus "fooBah" becomes "FooBah" and "x" becomes "X".\
name
- The string to be capitalized.Copyright © 2015 Oracle Corporation. All rights reserved.