public class StringUtil extends Object
Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static List |
explode(String source,
String deliminator)
Performs an 'explode' operation on the given source string.
|
static int |
find(String source,
String find)
Finds the index of the given string in the source string.
|
static String |
implode(List list,
String deliminator)
This is the inverse of 'explode'.
|
static String |
searchAndReplace(String source,
String search,
String replace)
Searches for various instances of the 'search' string and replaces them
with the 'replace' string.
|
public static int find(String source, String find)
public static List explode(String source, String deliminator)
explode("10:30:40:55", ":") = ({"10", "30", "40", "55"})
public static String implode(List list, String deliminator)
implode(({"1", "150", "500"}), ",") = "1,150,500"
Copyright © 2015. All rights reserved.