• Freddy Smith
  • NEWBIE
  • 10 Points
  • Member since 2022

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