List<string> lstStrng = new List<string>{'a','b'};
List<string> lstOfNames = new List<string>{'lstStrng'};
string name = lstOfNames[0];
System.debug(name[0]);
I am Storing the Name of a list in another List. How to access lstStrng
from lstOfNames
? If i perform above operation, I am getting an error 'Method does not exist or incorrect signature: void add(String) from the type String'