public class ListEx {
public static void mymethod()
{
list<integer> myList= new List<integer>();
myList.add(10);
myList.add(30);
myList.add(40);
integer lsize= myList.Size();
system.debug('List Size'+lsize);
system.debug('List'+myList);
}
}
Declaring Method in APEX:
ListEx.mymethod();
Whenever i try to run a program It is throwing an error saying
"Method does not exist or incorrect signature: void mymethod() from the type ListEx "`
ListEx
class actually saved? I only ask because the * is still showing in the Developer console, which implies it hasn't been saved yet.