You need to sign in to do that
Don't have an account?
vinod Sanubala
Get Started with Apex in trail head
Hi Al,
I am trying the module in TrailHead, "Get Started with Apex" from Developer Beginner
I have built below code, its working as expected, however I am getting error:
public class StringArrayTest {
public static void generateStringArray(Integer counts){
list <integer> results = new list<integer>(counts);
for(Integer i=0; i< results.size(); i++)
{
system.debug('Test '+i);
}
}
}
Error Message:
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.
Thanks in advance.
Cheers,
Vinod
I am trying the module in TrailHead, "Get Started with Apex" from Developer Beginner
I have built below code, its working as expected, however I am getting error:
public class StringArrayTest {
public static void generateStringArray(Integer counts){
list <integer> results = new list<integer>(counts);
for(Integer i=0; i< results.size(); i++)
{
system.debug('Test '+i);
}
}
}
Error Message:
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.
Thanks in advance.
Cheers,
Vinod
And go to Your Name>Developer Console>Debug>Open Execute Anonymous Window
Paste below code in it
Then verify the challange