Question
JAVA The source code below defines a Device class. Examine the code and answer the following questions; public class Device { private String MAC; private
JAVA
The source code below defines a Device class. Examine the code and answer the following questions;
public class Device {
private String MAC;
private String make;
private String model;
public Device(String MAC, String make, String model){
this.MAC = MAC;
this.make = make;
this.model = model;
}
public String getMAC() {
return MAC;
}
public String getMake() {
return make;
}
public String getModel() {
return model;
}
}
Using ArrayList, write a simple program to create five device objects. The details of the objects should be entered though a console by prompting the user. Write a method that will display the details of all the devices stored in the program. Write a method to delete the details of a device specified by the user. The method should provide feedback stating whether a record is deleted or not.
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