I am working on Apex Basics and Database module. While trying to complete first challange in it, I written below code (Screenshot 1) is for completing challange and getting error when I click on "Check Chllange" (Screenshot 2).
Screenshot 1:
Please help me with sugesstions for resolution of this error.
답변 5개
@Videen - it looks like you're not returning the correct number of strings. The challenge asks you to return a string list of length n. You start down this path with your testStr variable, and then you populate it in the for loop, but you never return it. Try returning testStr and see if you pass the challenge.