I have some values in List<SelectItem> selectedDividendYears
Now I want to make a string concatenating all the values of this list as csv.
For Example:
selectedDividendYears = {'123', 'sdf234', '12 1234c'}
now I want only one string, which will look like -
"123, sdf, 12 1234c"