You need to sign in to do that
Don't have an account?
BijayS
Getting Error while submitting the challenge for Apex
I am not sure whats the issue or i misunderstood the problem statement :
my code :
public class StringArrayTest {
public static List<String> generateStringArray(Integer num) {
List<String> generateString = new List<String>();
for(Integer i = 0; i <= num ; i++) {
string formattedString = 'Test ' + i;
generateString.add(formattedString);
}
System.debug(LoggingLevel.INFO, 'Formatted String for Trail Head'+generateString);
return generateString;
}
}
Could anyone help me understand the issue even though its silly :)
my code :
public class StringArrayTest {
public static List<String> generateStringArray(Integer num) {
List<String> generateString = new List<String>();
for(Integer i = 0; i <= num ; i++) {
string formattedString = 'Test ' + i;
generateString.add(formattedString);
}
System.debug(LoggingLevel.INFO, 'Formatted String for Trail Head'+generateString);
return generateString;
}
}
Could anyone help me understand the issue even though its silly :)
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AvPBIA0
Please try below code.
Please let us know if this will help you
Thanks
Amit Chaudhary