the whole error code is "Cannot find symbol Symbol:method store (String location: variable repository of type Object)" it appears in lines 11,18,23,28 i have imported the repository in the following bit of code
Campbell Ritchie wrote:Don't know. This is your code; you are writing the classes. That is something you should know.
I have a store method in my repository class i just dont known how to import the method from the repository class to the controller class.. hopefully someone can help i have tried
but i get a "package repository does not exist" error code
Please go back to what you were taught at the very first. Please revise the general structure of a class: fields methods and constructors. Why haven't you declared all the fields as private? Why didn't you write a constructor for your class? How does the repository work? How does it match restaurants to their reviews?