+ Start a Discussion
Nagarjun TNagarjun T 

unexpected token while entering the code in apex development


 account acc;

acc = new account;

acc.name='suresh';
acc.industry='telecom'
acc.rating='9';
acc.phone='9246100100';

insert acc;

system.debug('account id....'+acc.id);
Best Answer chosen by Nagarjun T
Manj_SFDCManj_SFDC
Hi Nagarjun,
use this

 account acc;

acc = new account();

acc.name='suresh';
acc.industry='telecom'
acc.rating='9';
acc.phone='9246100100';

insert acc;

system.debug('account id....'+acc.id);  

please mark this as solved if this helps you