public class StringUtils extends Object
| Constructor and Description | 
|---|
| StringUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | capitalizeFirstLetter(String data) | 
| static String | replace(String text,
       String repl,
       String with)Replace all occurances of a String within another String. | 
| static String | replace(String text,
       String repl,
       String with,
       int max)Replace a String with another String inside a larger String,
 for the first  maxvalues of the search String. | 
public static String replace(String text, String repl, String with)
Replace all occurances of a String within another String.
A null reference passed to this method is a no-op.
text - text to search and replace inrepl - String to search forwith - String to replace withreplace(String text, String repl, String with, int max)public static String replace(String text, String repl, String with, int max)
Replace a String with another String inside a larger String,
 for the first max values of the search String.
A null reference passed to this method is a no-op.
text - text to search and replace inrepl - String to search forwith - String to replace withmax - maximum number of values to replace, or -1 if no maximumCopyright © 2001–2016 Codehaus Plexus. All rights reserved.