function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pallipalli 

How to add List<String> values

hi , how to adding  sring values in  list collections. and display list of values by using this List <string>...

 

 

 

 

 

List<string> lst= new List<string>

 

 

please help me

MagulanDuraipandianMagulanDuraipandian

String var = 'hi';

List<string> lst= new List<string>

lst.add(var);

lst.add('Hello');

 

Regards,

Magulan D

Salesforce.com certified Force.com Developer.

 

SFDC Blog

 

If this post is your solution, kindly mark this as the solution.