public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
join(String[] strings,
String delimiter)
Concatenate string with the specified delimiter.
|
static String |
toJson(Object object)
Convert the given object into a JSON string using
Gson.
|
public static String join(String[] strings, String delimiter)
strings - Strings to be concatenated.delimiter - A delimiter used between strings. If null or an empty
string is given, delimiters are not inserted between strings.strings is null,
null is returned. If the size of strings is 0,
an empty string is returned.Copyright © 2016. All rights reserved.