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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!