• Reshma SWAMY 2
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
this is my code.

public class StringArrayTest {
    public static List <String> generateStringArray (Integer n)
    {
       List<String> List1 = new List<String>();
       
        for(Integer i=0;i<n;i++)
        {
          List1.add('\'Test '+i+'\'' );
            System.debug(List1[i]);
  }
       
        return List1;
    }

}