function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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