• sanket supe
  • NEWBIE
  • 49 Points
  • Member since 2014

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
public class StringArrayTest
{
    public void generateStringArray()
    {
        String[] colors = new List<String>{'red','green','blue'};
        for(Integer i=0;i<colors.size();i++)
         {
             // Write value to the debug log
              System.debug(colors[i]+i);
         }
    }
}


M just fresher in SFDC...
How can i run above code.??
Thanx in Advance :)
Hello...
I am facing problem in solving challange 
error says..

Challenge not yet complete... here's what's wrong: 
Executing the 'searchForContacts' method failed. Either the method does not exist, is not static, or does not return the expected contacts.
 my code is.

public class ContactSearch {
 public static List<List<SObject>> searchForContacts(String name) {
       
     List<List<SObject>> result= [FIND :name IN ALL FIELDS 
                                      RETURNING  Contact(LastName, MailingPostalCode)];
        return result;
      
}
}

please help

Thanks in Advance,
Sanket Supe
public class StringArrayTest
{
    public void generateStringArray()
    {
        String[] colors = new List<String>{'red','green','blue'};
        for(Integer i=0;i<colors.size();i++)
         {
             // Write value to the debug log
              System.debug(colors[i]+i);
         }
    }
}


M just fresher in SFDC...
How can i run above code.??
Thanx in Advance :)