public class ArrayUtil extends Object
| Constructor and Description |
|---|
ArrayUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
contains(String str,
String[] arr)
check if there is an element that contains the specified string
|
static int |
endsWith(String str,
String[] arr)
check if there is an element that ends with the specified string
|
static String |
implode(String glue,
Object[] pieces)
String array implode internal method
|
static int |
indexOf(String ele,
String[] arr)
check and search the specified element in the Array
|
static int |
startsWith(String str,
String[] arr)
check if there is an element that starts with the specified string
|
static String |
toJsonArray(String[] arr) |
static String |
toJsonObject(String[] arr)
implode the array elements as a Json array string
|
public static String implode(String glue, Object[] pieces)
glue - pieces - public static int indexOf(String ele, String[] arr)
ele - arr - public static int startsWith(String str, String[] arr)
str - public static int endsWith(String str, String[] arr)
str - public static int contains(String str, String[] arr)
str - public static String toJsonObject(String[] arr)
arr - Copyright © 2017. All Rights Reserved.