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
HAZLITT VASUDEVANHAZLITT VASUDEVAN 

why this error pops up? Missing ';' at 'String'

User-added image
Best Answer chosen by HAZLITT VASUDEVAN
CharuDuttCharuDutt
Hii Hazlitt

Try Refresh Dev Console Window And Try To Save It Again

OR

Try This
list<String> arr = new list<String>();

Please Mark It As Best Answer If It Helps Thank You!

All Answers

CharuDuttCharuDutt
Hii Hazlitt

Try Refresh Dev Console Window And Try To Save It Again

OR

Try This
list<String> arr = new list<String>();

Please Mark It As Best Answer If It Helps Thank You!
This was selected as the best answer
Suraj Tripathi 47Suraj Tripathi 47

Hi Hazlit,

Your code is looking correct.

I would like to see the complete code.Don't share screenshots.

Please share your code.

Thanks

Surya GSurya G
Hi Hazlitt, 

check line 11 or 12, that is the lines above the string[] instantiation, whether it is terminated or not.

Thanks 
Surya G

 
HAZLITT VASUDEVANHAZLITT VASUDEVAN
Thanks for responding.  @CharuDutt @Suraj Tripathi 47  @Surya G


Try Refresh Dev Console Window And Try To Save It Again 
It worked.