Write an object oriented program for “Media Player” that alphabetically sorts the songs in the playlist by using two stacks. A song has some features like name, singer and recorded year. Example: Song[] s = new Songs[4]; s[0] = new Song(“Good bye my lover”, “James Blunt”, 2006); s[1] = new Song(“Rolling in the deep”, “Adele Laurie Blue Adkins”, 2010); s[2] = new Song(“I have nothing”, “Whitney Houston”, 1992); s[3] = new Song(“Better than you”, “Metallica”, 1999); Hint: Create Song class and Playlist class. Sorting method must be in the playlist class.
Kodda bazı hatalarım var düzeltebilecek olan varsa kodu atabilirim dm den
1. sayfa
Hizmet kalitesi için çerezleri kullanabiliriz, DH'yi kullanırken depoladığımız çerezlerle ilgili veri politikamıza gözatın.
playlist by using two stacks.
A song has some features like name, singer and recorded year.
Example:
Song[] s = new Songs[4];
s[0] = new Song(“Good bye my lover”, “James Blunt”, 2006);
s[1] = new Song(“Rolling in the deep”, “Adele Laurie Blue Adkins”, 2010);
s[2] = new Song(“I have nothing”, “Whitney Houston”, 1992);
s[3] = new Song(“Better than you”, “Metallica”, 1999);
Hint: Create Song class and Playlist class. Sorting method must be in the playlist class.
Kodda bazı hatalarım var düzeltebilecek olan varsa kodu atabilirim dm den