Question: JAVA Write a method to delete the details of a device specified by the user. The method should provide feedback stating whether a record is
JAVA
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 using the source code below.
public class Device {
private static List
private static 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;
}
public static void displayDetails(List
public static void main(String[] args) { ArrayList
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
