Question: quickly please 1. Create a new Java project. Name it lab-02. 2. Add the following classes (GIVEN IN SEPARATE FILES) to the project: public class



1. Create a new Java project. Name it lab-02. 2. Add the following classes (GIVEN IN SEPARATE FILES) to the project: public class Location private String city: private String country: public Location(String city, String county) this city city this.country country: 3 public String getcityt) { return city: public void setcity(String city) { this city city: public String getCountry() { return country 3 public void setCountry(String country) { this.country country: Bowride public String toString() { return city +.+ country > public class Room private int number: private int floor: private boolean available; public Roon(int number, int Floor, boolean available) this number number; this.Floor floor; this available available; public int cetNumber() return number: public void setNumber(int number) this number = number: 1 public int petFloor() { return floor public void setFloor(int Floor) this floor floor 0 public boolean Available) return available: public void setAvailable(woolean wilable) this available. Wilable onde public String tostrine) return Strine.format(" Koos Nuber utlodet Xd Available10 number, floor, available) Question-1 Hotel Class (80 Points) 1. Create a class named Hotel 2. The class has three attributes as follows: private String name; private Location location; private ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
