• BigMag
  • NEWBIE
  • 8 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
The initial Apex challenge:

public class StringArrayTest {
    private static List<String> ReturnedStrings = new List<String>();
    public static void generateStringArray (Integer StringsCount){
        for (Integer i = 0; i < StringsCount;i++){
            ReturnedStrings.add('Test ' + String.valueOf(i) );
            System.debug(ReturnedStrings);
        } 
    }
}
ran nicely in the devlopper console.
User-added image
But I got this error when I clicked Check Challenge

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.
 
The following won't validate, but won't pass the validation in this trail.  Quantity field is howver using the correct field.  Thoughts?

User-added image

<aura:component>

<aura:attribute name="item" type="Camping_Item__c" required="true"/>    
    <ui:outputText value="{!v.item.Name}"/>
    <ui:outputCheckbox value="{!v.item.Packed__c}"/>
    <ui:outputCurrency value="{!v.item.Price__c}"/>
      <ui:outputNumber value="{!v.item.Quantity}"/>
            
</aura:component>
The initial Apex challenge:

public class StringArrayTest {
    private static List<String> ReturnedStrings = new List<String>();
    public static void generateStringArray (Integer StringsCount){
        for (Integer i = 0; i < StringsCount;i++){
            ReturnedStrings.add('Test ' + String.valueOf(i) );
            System.debug(ReturnedStrings);
        } 
    }
}
ran nicely in the devlopper console.
User-added image
But I got this error when I clicked Check Challenge

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.
 
Can anyone help me understand why I'm getting this error.  I'm reading it to mean that there is an issue reaching my instance and not with my work but I've been wrong before :)

User-added image