• Shivanee Hingwe 6
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Here is my code: 
public class StringArrayTest {
    public static List<String> generateStringArray(Integer len){
        List<String> myarr = new List<String>();
        for(integer n=0;n<=len;n++)
        {
            myarr.add('Test' +n);
            system.debug(myarr[n]);
        }
        return (myarr);
    }
}