Question: in java plz Question 2 [20 points) Write a client class (application) in which you: a) Create an array D of 10 disks (not an
Question 2 [20 points) Write a client class (application) in which you: a) Create an array D of 10 disks (not an ArrayList). Write code to insert one audio and one video in the array. The values of these two objects are given by the programmer. Assume the remaining cells of the array D are filled with audio and video objects. b) Write code that displays the director of each video disk in D. c) Write code that adds one track named "Hello" to the first audio in the array D. Note: You have to search for the first audio disk and not assume it is in cell 0 or 1. d) Prompt the user to enter a track name as a String. Then, display whether the name is found among the audio disks in the array or not. You need to check the trackslist of each audio disk in the array D. Disk - title: String -playTime: int // in minutes + Disk(title: String, playTime: int) + getters + toString(): String Audio - artist: String -tracksList: ArrayList + Audio(artist: String, ti: String, pTime:int) + getArtist(): String + getTracksList(): ArrayList + addTrack(name: String): void + remove Track(name: String): void + toString(: String Video - director: String - description: String + Video(dir: String, desc: String, ti: String, pTime: int) +toString(): Stri
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
