Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Fixed the clas Store. Delete the second line: import java.util.Objects ; and fixed the line 30: if (Objects.equals(getName(), other.getName())) Create a Java NetBeans project. Read
Fixed the clas Store. Delete the second line: import java.util.Objects; and fixed the line 30: if (Objects.equals(getName(), other.getName())) Create a Java NetBeans project. Read the instructions below carefullyand make sure follow the steps from the instructions. Do not skip any steps. NEED TO FOLLOW THE INSTRUCTIONS( do not mixed steps). Make sure including your OUTPUT. Make sure the code will work in NetBeans IDE 8.0.2.
Restaurant client application class and service classes ok/ package restaurantclient; public class RestaurantClienti public static void main(String[l args) { Restaurant r1 = new Restaurant(350, 10.75, "Joe"); Restaurant r2 = new Restaurant (725, 16.52, "Trader"); tostringO); System.out.println(r1.toString()); System.out.println(r2.tostring)); r2.setAvgPricePerMeal (r1.getAvgPricePerMeal()); r2.setNumPeopleServed(r1.getNumPeopleServed)); if (r1.equals (r2)) System.out.println("In Both objects are same... n"); else System.out.println("In Sorry!!! Both objects are not same. In"); System.out.println(" Average Price Per Person:"rl.getAvgPricePerMeal) " n)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started