• Pradeep Joshi 7
  • NEWBIE
  • 20 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hi,
i am getting error while solving trailhead challange. please find below error.

"Method does not exist or incorrect signature: void generateStringArray(Integer) from the type StringArrayTest"

I tried some code given as best answers.

1. First Code I tried
public class StringArrayTest
{
public static List<String> generateStringArray(Integer n) {
List<String> myArray = new List<String>();
for(Integer i=0;i<n;i++) {
myArray.add('Test '+i);
System.debug(myArray[i]);
}
return myArray;
}
}

2. Second Code I tried
public class StringArrayTest {
public static List<String> generateStringArray(Integer n) {
List<String> List1 = new List<String>();
for(Integer i =0; i < n; ++i)
List1.add('Test ' + i);
return List1;
}
}

I am executing this code from DEBUG > Open Execute Anonymous Window and writing below code to call method.

StringArrayTest.generateStringArray(5);

Please suggest, How can I fix this

Thanks
Pradeep
I am getting Superbadge error in superbadge "Lightning Experience Reports & Dashboards Specialist". In this I have compeleted 6 step successfuly. So if i create new Developer edition or playground, I need to setup all the things in this playground from starting point?
Please suggest and help me to find the solution.

Thanks in Advance 
I am compeleting Lightning Experience Reports & Dashboards Specialist superbadge and error is coming while check challenge. I have already create new playground.
The error is "Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: CZSCNVHD
"
Hi,
i am getting error while solving trailhead challange. please find below error.

"Method does not exist or incorrect signature: void generateStringArray(Integer) from the type StringArrayTest"

I tried some code given as best answers.

1. First Code I tried
public class StringArrayTest
{
public static List<String> generateStringArray(Integer n) {
List<String> myArray = new List<String>();
for(Integer i=0;i<n;i++) {
myArray.add('Test '+i);
System.debug(myArray[i]);
}
return myArray;
}
}

2. Second Code I tried
public class StringArrayTest {
public static List<String> generateStringArray(Integer n) {
List<String> List1 = new List<String>();
for(Integer i =0; i < n; ++i)
List1.add('Test ' + i);
return List1;
}
}

I am executing this code from DEBUG > Open Execute Anonymous Window and writing below code to call method.

StringArrayTest.generateStringArray(5);

Please suggest, How can I fix this

Thanks
Pradeep
I am getting Superbadge error in superbadge "Lightning Experience Reports & Dashboards Specialist". In this I have compeleted 6 step successfuly. So if i create new Developer edition or playground, I need to setup all the things in this playground from starting point?
Please suggest and help me to find the solution.

Thanks in Advance