Skip to main content
3 of 3
added 12 characters in body
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

In this example I am using ; you can change that to whatever you are using to separate your string values.

string example = 'one;two;three';
List<String> list = new List<String>();
for(String s : example.split(';'))
{
   list.add(s);
}
Carlos
  • 1.9k
  • 8
  • 36
  • 54