Class StringUtil


  • public final class StringUtil
    extends Object
    Utility class for Strings.
    Author:
    Andrea Child
    • Method Detail

      • split

        public static List<String> split​(String toSplit,
                                         String separator)
        Splits the provided string into a List of string by the given separator, which will not be included in the returned List.
        Parameters:
        toSplit - the string to split
        separator - the separator string to split by - empty will split into a List of characters
        Returns:
        a List of parsed strings, not including the given separator