Created
December 4, 2023 08:47
-
-
Save burlistic/f389368f76e30db2b7d368227dbd90c0 to your computer and use it in GitHub Desktop.
APEX SalesForce Challenge String Array Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringArrayTest { | |
public static String[] generateStringArray(Integer numStrings){ | |
String[] stringArray = new List<String>(); | |
for (Integer i = 0, j = 0; i < numStrings; i++) { | |
System.debug('Test ' + i); | |
stringArray.Add('Test ' + i); | |
} | |
return stringArray; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment