+ Start a Discussion
subramanyam Rsubramanyam R 

any one clarify this this error...Error: Compile Error: Illegal assignment from List<Account> to List<account> at line 4 column 8

global class scheduleApex implements Schedulable {
   global void execute(SchedulableContext SC) {
       list<Account> acclist=[select id,description 
                               from account limit 20];
       for(Account a: acclist){
           a.description='schedule apex';
       update acclist;                        
Hi subramanyam R,

There is no chance to get  thios error from the code you have posted here .

I copied your code and it got saved successfully. Don't see any issues with the code.

subramanyam Rsubramanyam R
yes now cleared......i create the apex class with the name of account...so thats why it was showing error..now cleared