Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I can post more photots of code i have but i Need to implement methods in the second picture so that the code runs in

image text in transcribed
image text in transcribed
image text in transcribed
I can post more photots of code i have but i Need to implement methods in the second picture so that the code runs in the third picture
java
Part 1 - MyArrayList.java (90 points) Make sure to run the music player BEFORE you start writing code. This will give you a chance to test if the player works and to see the expected behavior. Once the player is working as expected, you can start creating your own ArrayList for use in the MP3 player. Create a new Java File called, MyArrayList.java that implements the Listinterface interface provided to you. A description of what each method should do is found in the Interface. The underlying encapsulated data structure in MyArrayList.java must be an array. Once you have MyArrayList.java implemented, you can remove the ArrayList declaration and instantiation in Mp3Player.java and replace it with MyArrayList. Where this should be done is clearly marked in Mp3Player.java. You know you have most likely implemented the methods correctly if the program runs exactly the same with MyArrayList as it does with Java's ArrayList. We will run Mp3Player.java with your implementation as well as some additional tests to fully test the implementation. Notes on trading - make sure your code compiles, is neat, and includes your name at the top of the MyArrayList.java file in the Javadoc style comments. Part 2 - PDF write up (10 points) Trulilole eclipse-workspace - Project1/src/MyArrayListMP3.java - Eclipse IDE HyArrayLisMP3... a Mp3Player.jave Listinterface... a MyIndexOutOfBo... Track.java public class MyArrayListMP3 Implements ListInterfacest protected final int DEFAULT_CAPACITY - 5; protected Til array: protected int Top Index = -1; rride ulic void add( t) { @Override public T get(int pos) throws MyIndexOutOfBoundsException, ArrayIndexOutOfBounds.Exception return null; zz eOverride public, boolean remove(Tt) { return false; @Override oublic void remove(int pos) throws MyIndexOutOfBounds exception, ArrayIndexOutorBoundExce Outlin Override public void addant pos, Tt) throws MyIndexOutOfBounds Exception, ArrayIndexOutorBounds: der @Override. public void set(int pes,Tt) throws MyIndexOutOfBounds Exception, ArrayIndexOutorBounds: Problems Javadoc Declaration Console Console Coverage XXBABA terminated Mp3 Player Java Application Abrary Java/Jawa Virtual Machines13.0.1 du contentHome/bilave Feb 24, 2020, 6:1 at Mp3Players1.run(MoPlayer.java:256) at java.desktop/java.awt.event. InvocationEvent.dispatco InvocationEvent :313 at jave.desktop/java.awt.eventueug.dispatchEvent EventoMEMBALAYA 220 Java.desktop/java.awt. Eventueue 14. FulEventueue ava:721 veces / . .EventQueue 14. runt EventueelAVALLI java.bdse/1 . security. Access Controller.dopriviced Access Controllertava1391) ave, base/java.secuty.ProtectionbopainavasecuriCATETAPI tersectriva lege B. desktop/jave. . . En venn Erentoe.ava:24) R enatcheda ave.desktop/java.awt.evenspate thread. ventsForfatterEvento spatchThread.1 avan Tove PV.VERDIET. PETERSELSRECHT Batch thread R .EVER Dispatchbred. Exentinaththread 167Mer som 04 MacBook Pro ndow Help eclipse-workspace - Project 1/src/Mp3Player.java - Eclipse IDE MyArrayListMP3... Mp3Player.java Lisinterface Myinden OutOfBo... Track Java 1/static ArrayList Implements ListInterfacest protected final int DEFAULT_CAPACITY - 5; protected Til array: protected int Top Index = -1; rride ulic void add( t) { @Override public T get(int pos) throws MyIndexOutOfBoundsException, ArrayIndexOutOfBounds.Exception return null; zz eOverride public, boolean remove(Tt) { return false; @Override oublic void remove(int pos) throws MyIndexOutOfBounds exception, ArrayIndexOutorBoundExce Outlin Override public void addant pos, Tt) throws MyIndexOutOfBounds Exception, ArrayIndexOutorBounds: der @Override. public void set(int pes,Tt) throws MyIndexOutOfBounds Exception, ArrayIndexOutorBounds: Problems Javadoc Declaration Console Console Coverage XXBABA terminated Mp3 Player Java Application Abrary Java/Jawa Virtual Machines13.0.1 du contentHome/bilave Feb 24, 2020, 6:1 at Mp3Players1.run(MoPlayer.java:256) at java.desktop/java.awt.event. InvocationEvent.dispatco InvocationEvent :313 at jave.desktop/java.awt.eventueug.dispatchEvent EventoMEMBALAYA 220 Java.desktop/java.awt. Eventueue 14. FulEventueue ava:721 veces / . .EventQueue 14. runt EventueelAVALLI java.bdse/1 . security. Access Controller.dopriviced Access Controllertava1391) ave, base/java.secuty.ProtectionbopainavasecuriCATETAPI tersectriva lege B. desktop/jave. . . En venn Erentoe.ava:24) R enatcheda ave.desktop/java.awt.evenspate thread. ventsForfatterEvento spatchThread.1 avan Tove PV.VERDIET. PETERSELSRECHT Batch thread R .EVER Dispatchbred. Exentinaththread 167Mer som 04 MacBook Pro ndow Help eclipse-workspace - Project 1/src/Mp3Player.java - Eclipse IDE MyArrayListMP3... Mp3Player.java Lisinterface Myinden OutOfBo... Track Java 1/static ArrayList

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions