Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need an arraylist instance variable to store game titles Three parameter const

ID: 3530430 • Letter: I

Question

I need an arraylist instance variable to store game titles Three parameter constructor to initialize the parent class cpuType and hardDriverSize, and initialize the game titles Arraylist A display() method that calls the parents display method, then prints all the games public class Playstation { private String cpuType; private String hardDriveSize; public Computer(String cpuType, String hardDriveSize) { this.cpuType = cpuType; this.hardDriveSize = hardDriveSize; } public void setcpuType(String cpuType) { this.cpuType = cpuType; } public void Print() { System.out.println("CpuType: " + cpuType + " hardDriveSize: " + hardDriveSize); } public boolean equals(Playstation b) { if (b == null) return false; if (b == this) return true; return (this.cpuType.equals(b.cpuType) && this.hardDriveSize.equals(b.hardDriveSize)); } public String toString() { return "CpuType: " + cpuType + " hardDriveSize: " + hardDriveSize; } }

Explanation / Answer

private ArrayList<String> gameTitles = new ArrayList<String>();//new empty String ArrayList

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote