You are building a Music Player app.
You need to implement the MusicPlayer class, which should hold the track names as Strings in an array. The array is already defined in the given code.
The player should support the following functions:
add: add the given argument track to the tracks array.
show: output all track names in the player on separate lines.
play: start playing the first track by outputting "Playing name" where name is the first track name.

You can add a new item to an array using +=, for example: tracks += track

make sure the answer or the language code is in kotlin


answer it asap

Answer :

Using the computational knowledge in JAVA it is possible to write a code that uses the functions to make a Music player app.

Writting the code in JAVA

import React, { Component,useRef, setStatus, status } from 'react';

import ‘./Song.css';

import song1 from "./music/song1.mp3";

import song2 from "./music/song2.mp3"

import song3 from "./music/song3.mp3"

import song4 from "./music/song4.mp3"

export default function MusicPlayer() {

   const data = [

           />

       </li>

   );

};

See more about JAVA at brainly.com/question/12975450

#SPJ1

${teks-lihat-gambar} lhmarianateixeira

Other Questions