• Santhosh Nair
  • NEWBIE
  • 0 Points
  • Member since 2018


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
public class StringArrayTest {
    public Static List<String> generateStringArray(integer n){
/* i want to know that, here the integer n is  not initialized with any value, so how i<n works*/
         List<String> myArray = new List<String> ();
        for(integer i=0; i<n; i++){
            myArray.add('Test' +i);
            System.debug(myArray[i]);
        }
            return myArray;
    }
}
// And also my above program is failing .
//help me please.