Package de.renebergelt.utils
Class StringUtils
java.lang.Object
de.renebergelt.utils.StringUtils
Utility functions for strings
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringJoin the elements in the iterable (by using their toString() method) to a string by using the delimiter
a = {"A", "B", "C"}, delimiter = ";"
result: "A;B;C"static StringJoin the given array to a string by using the delimiter
a = {"A", "B", "C"}, delimiter = ";"
result: "A;B;C"
-
Method Details
-
join
Join the given array to a string by using the delimiter
a = {"A", "B", "C"}, delimiter = ";"
result: "A;B;C"- Parameters:
a- Array of strings to joindelimiter- Teh delimiter to use for joining- Returns:
- The resulting string
-
join
Join the elements in the iterable (by using their toString() method) to a string by using the delimiter
a = {"A", "B", "C"}, delimiter = ";"
result: "A;B;C"- Parameters:
elements- Elements to joindelimiter- The delimiter to use for joining- Returns:
- The resulting string
-