I get the aforementioned error code on the following code lines
the problem occured when i added in my Controller class. I added this because i needed access to the Restaurant class in order to modify the variables. my code in my controller class is as follows (note that without the aforementioned addition i didnt have access to the variables even though the class is imported as seen below)
Are you using NetBeans? It has a tendency to tell the code to throw that exception when you start a constructor or a method and haven't completed it, like on line 33. If you have completed the onstructor, delete the throw statement.