Skip to main content
Hi, in an execute anonymous window I've got this single line:

 

List<Contact> conlist = [select Id, from contact where email='janedoe@gmail.com'];

 

I'm getting this error: Unexpected token '<'.

 

Does anyone know the reason it's not recognising the < in the list declaration? What am I missing?
2 answers
  1. Apr 17, 2018, 7:10 PM
    try this

     

     

    List<Contact> conlist = [select Id from contact where email='janedoe@gmail.com'];

     

     
0/9000