• Alex Tsitsura
  • NEWBIE
  • 5 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi, 

It is possible to declare a method that will allow a variable number of parameters?

Java example:

void foo(String... args) {
    for (String arg : args) {
        System.out.println(arg);
    }
}
Hi

I am using the code in below link to add CAPTCHA to my site page.
https://developer.salesforce.com/page/Adding_CAPTCHA_to_Force.com_Sites

In test class how can I create a scenario for success and failure for entering CAPTCHA.

Thanks alot.
Hi, 

It is possible to declare a method that will allow a variable number of parameters?

Java example:

void foo(String... args) {
    for (String arg : args) {
        System.out.println(arg);
    }
}