when i try to run my code i get the following error "Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - constructor RestaurantController in class controllers.RestaurantController cannot be applied to given types;
found: no arguments
reason: actual and formal argument lists differ in length
Java Result: 1"
my restaurant app code is as follows and the error codes are on lines 19 and 29
Please read this FAQ. Please go back to the code where your IDE (??NetBeans??) will have a red mark against the code with the problem and it will tell you what the problem is.
That method probably would be better as an instance method. What does the run() method in the other class take as its parameters?