In the code below, StringUtils is a custom object we have to do certain operations. All I'm trying to do is take a delimited string, split it up into a list, add a new element to the List before dumping it back into a delimited string.
List<String> reportList = StringUtils.delimSplitToList(reports, "|"); reportList.add(repID + "-0"); reports = StringUtils.join(reportList, "|");
I'm getting an exception:
What I've read is that the add method needs to be overridden. How do I do that? Or is there a better way to do what I want to accomplish?null