This Java-based application is designed to manage a collection of songs organized into albums and playlists. It allows users to create albums, add songs to albums, and manage playlists by adding, removing, or playing songs.
- Album Management:
- Create new albums.
- Add songs to albums.
- Retrieve songs by title and duration.
- Playlist Management:
- Add songs from albums to a playlist.
- Remove songs from a playlist.
- Play songs in a playlist sequentially.
- Programming Language: Java
- Java Features Used:
- Object-Oriented Programming (OOP)
- Collections Framework (ArrayList, LinkedList)
- Iterators
Album.java: Contains theAlbumclass to represent a music album. It includes methods to add songs and retrieve them by title and duration.Song.java: Defines theSongclass, representing a song with attributes such as title and duration.Main.java: The entry point of the application where playlists are created and managed. Includes logic to add, remove, and play songs from playlists..gitignore: Specifies files and directories to be ignored by Git.LICENSE: Contains the license for the project.
Prerequisites
- Java Development Kit (JDK) installed (version 8 or later).
- A code editor or IDE (e.g., IntelliJ IDEA, Eclipse, or Visual Studio Code).
Setup
-
Clone the repository:
git clone https://github.com/stephenombuya/songplaylistapplication
-
Open the project in your preferred IDE.
-
Compile and run the
Main.javafile to start the application.
- Create Albums: Use the Album class to create albums and add songs.
- Add Songs to Playlist: Add songs from albums to a playlist using the Main class methods.
- Manage Playlists: Play, remove, or navigate through songs in the playlist.
This project is licensed under the terms of the LICENSE file.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.