Can someone explain why I'm getting a syntax error exception on line 12? Thanks! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can someone explain why I'm getting a syntax error exception on line 12? Thanks!

https://code.sololearn.com/cMd1J9m8jay8/?ref=app

28th Dec 2018, 7:23 PM
Grayson Roland
Grayson Roland - avatar
3 Answers
+ 6
Because of the missing closing bracket ) in line 7. If the compiler/interpreter tells you there is an error in line x and you don't find it, it's usually a good idea to check the line(s) before.
28th Dec 2018, 7:48 PM
Anna
Anna - avatar
+ 2
Okay in your line of code on line 12 add ) at the end of line 7. When i did it, it gave me no output hope that helps
28th Dec 2018, 7:49 PM
Lee Proctor
Lee Proctor - avatar
0
How to book appointment in java.i have created arraylist for patients
26th Mar 2019, 9:55 PM
Nifa