Org:Mindful Goat Playground
After completing this unit, you'll be able to:
Apex is a strongly typed, object-oriented language that runs on Salesforce servers. It looks like Java, saves to the platform, and has built-in support for database operations, so you can query and change records with a single line.
StringArrayTest.generateStringArray that takes an Integer and returns a List of Strings formatted Test 0, Test 1, and so on.public class StringArrayTest {
public static List<String> generateStringArray(Integer n) {
List<String> result = new List<String>();
for (Integer i = 0; i < n; i++) result.add('Test ' + i);
return result;
}
}