I am doing a Semester project of our own app development. I am making a Recipe/Restaurant app. The issue is that in my Restaurant.java is unable to get the RestaurantAdapter -> public void setFilteredList as it has come with an error I am unable to solve after referring to previous error.
The current error I got was:
constructor RestaurantAdapter in class RestaurantAdapter cannot be applied to given types
Error message
These are the Java and XML files that are used:
The java class:
1st half
2nd half
error part:
else{
RestaurantAdapter restaurantAdapter = new RestaurantAdapter();
restaurantAdapter.setFilteredList(filteredList);
}
RestaurantAdapter:
Adpapter part 1
Adpapter part 2
Apologies if the response is scuffed, this is my first time posting. Greatly appreciate the help!




