Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaisha-nexus/moviecollectionmanager
This program focuses on encapsulation, Arraylist, Getters and provides funcationality by various options to user
https://github.com/aaisha-nexus/moviecollectionmanager
arraylist arraylist-java constructors encapsulation getter-functions java javaprojects
Last synced: about 2 months ago
JSON representation
This program focuses on encapsulation, Arraylist, Getters and provides funcationality by various options to user
- Host: GitHub
- URL: https://github.com/aaisha-nexus/moviecollectionmanager
- Owner: Aaisha-Nexus
- Created: 2024-08-17T18:16:11.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T18:51:55.000Z (4 months ago)
- Last Synced: 2024-08-17T19:57:43.998Z (4 months ago)
- Topics: arraylist, arraylist-java, constructors, encapsulation, getter-functions, java, javaprojects
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MovieCollectionManager
## Overview
**MovieCollectionManager** is a Java-based program to manage a collection of movies. It allows users to add, remove, and display movies by various attributes such as genre and director. This project demonstrates the use of object-oriented programming concepts **OOPS** like encapsulation, ArrayList manipulation, and method usage in Java.
## Features
- **Add a Movie**: Users can input a movie's title, release year, genre, and director to add it to their collection.
- **Remove a Movie**: Users can remove a movie from their collection by entering its title.
- **Display All Movies**: The program lists all movies currently in the collection.
- **Display Movies by Genre**: Users can filter and display movies based on their genre.
- **Display Movies by Director**: Users can filter and display movies based on the director's name.
- **Exit**: The program provides a simple exit option to end the session.## Class Structure
### Movie Class
- **Purpose**: Represents a single movie, holding details like title, release year, genre, and director.
- **Encapsulation**: All attributes are private, accessed via getter methods.
- **Methods**:
- `getMovie_title()`
- `getRelease_year()`
- `getGenre()`
- `getDirector()`
- `displayInfo()`: Prints the movie's details.### movieCollection Class
- **Purpose**: Manages a collection of `Movie` objects, storing them in an `ArrayList`.
- **Methods**:
- `addMovie(Movie movie)`: Adds a movie to the collection.
- `removeMovie(String title)`: Removes a movie by its title.
- `displayMovie()`: Displays all movies in the collection.
- `displayMoviesByGenre(String genre)`: Displays movies filtered by genre.
- `displayMoviesByDirector(String director)`: Displays movies filtered by director.
## ContributingContributions are welcome! Feel free to fork this repository, make your changes, and submit a pull request.