Skip to main content
added 12 characters in body
Source Link
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); }

string example = 'one;two;three';
List<String> list = new List<String>();
for(String s : example.split(';'))
{
   list.add(s);
}

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); }

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);
}
deleted 1 character in body
Source Link
Carlos
  • 1.9k
  • 8
  • 36
  • 54

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); }

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); }

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); }

Source Link
Carlos
  • 1.9k
  • 8
  • 36
  • 54

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); }