Package io.github.ackuq
Class StringArrayUtils
- java.lang.Object
-
- io.github.ackuq.StringArrayUtils
-
public class StringArrayUtils extends Object
A class that provides simple utility functions that can be used on string arrays.
-
-
Constructor Summary
Constructors Constructor Description StringArrayUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]capitalize(String[] array)Capitalize each element in the arraystatic String[]toLowerCase(String[] array)Transforms the strings in the array to be lowercasestatic String[]toUpperCase(String[] array)Transforms the strings in the array to be uppercasestatic String[]trim(String[] array)Trim each element in the array
-
-
-
Method Detail
-
trim
public static String[] trim(String[] array)
Trim each element in the array- Parameters:
array- An array of values to be trimmed- Returns:
- The resulting array
-
capitalize
public static String[] capitalize(String[] array)
Capitalize each element in the array- Parameters:
array- An array of values to be capitalized- Returns:
- The resulting array
-
toLowerCase
public static String[] toLowerCase(String[] array)
Transforms the strings in the array to be lowercase- Parameters:
array- An array of values which should be transformed- Returns:
- The resulting array
-
-