String[] daysOfWeek = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}; String joinedDays = StringUtils.join(daysOfWeek, ",");
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
Listcolors = Arrays.asList("red", "green", "blue"); String joinedColors = StringUtils.join(colors, ";");
red;green;blue