• Willie Ha 3
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I'm not sure where I am going wrong. Any help would be appreciated.

Here is my code:
public class StringArrayTest {
    public static String[]generateStringArray(){
        List<String> Test = new List<String>{'Test 0', 'Test 1', 'Test 2'};
            
            for(Integer n=0; n<Test.size(); n++){
                System.debug('Test' + n);
            }
        return Test;
    }
}
This is the error:
Challenge not yet complete... here's what's wrong: 
Executing the 'generateStringArray' method failed. Either the method does not exist, is not static, or does not return the proper number of strings.