diff --git a/RentalProject/.idea/.gitignore b/RentalProject/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/RentalProject/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/RentalProject/.idea/compiler.xml b/RentalProject/.idea/compiler.xml
new file mode 100644
index 0000000..6a56d52
--- /dev/null
+++ b/RentalProject/.idea/compiler.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject/.idea/encodings.xml b/RentalProject/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/RentalProject/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject/.idea/jarRepositories.xml b/RentalProject/.idea/jarRepositories.xml
new file mode 100644
index 0000000..712ab9d
--- /dev/null
+++ b/RentalProject/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject/.idea/misc.xml b/RentalProject/.idea/misc.xml
new file mode 100644
index 0000000..132404b
--- /dev/null
+++ b/RentalProject/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject/.idea/vcs.xml b/RentalProject/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/RentalProject/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject/pom.xml b/RentalProject/pom.xml
new file mode 100644
index 0000000..43e7c7d
--- /dev/null
+++ b/RentalProject/pom.xml
@@ -0,0 +1,28 @@
+
+
+ 4.0.0
+
+ org.example
+ RentalTest
+ 1.0-SNAPSHOT
+
+
+
+ com.google.code.gson
+ gson
+ 2.10.1
+
+
+
+
+
+
+
+ 8
+ 8
+ UTF-8
+
+
+
\ No newline at end of file
diff --git a/RentalProject/src/main/java/org/example/AllModules.java b/RentalProject/src/main/java/org/example/AllModules.java
new file mode 100644
index 0000000..4958d2f
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/AllModules.java
@@ -0,0 +1,51 @@
+package org.example;
+
+import java.util.ArrayList;
+
+public class AllModules {
+ private ArrayList customers;
+ private ArrayList books;
+ private ArrayList games;
+ private ArrayList movies;
+ private ArrayList rentals;
+
+ public ArrayList getCustomers() {
+ return customers;
+ }
+
+ public void setCustomers(ArrayList customers) {
+ this.customers = customers;
+ }
+
+ public ArrayList getBooks() {
+ return books;
+ }
+
+ public void setBooks(ArrayList books) {
+ this.books = books;
+ }
+
+ public ArrayList getGames() {
+ return games;
+ }
+
+ public void setGames(ArrayList games) {
+ this.games = games;
+ }
+
+ public ArrayList getMovies() {
+ return movies;
+ }
+
+ public void setMovies(ArrayList movies) {
+ this.movies = movies;
+ }
+
+ public ArrayList getRentals() {
+ return rentals;
+ }
+
+ public void setRentals(ArrayList rentals) {
+ this.rentals = rentals;
+ }
+}
diff --git a/RentalProject/src/main/java/org/example/Book.java b/RentalProject/src/main/java/org/example/Book.java
new file mode 100644
index 0000000..eda4120
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/Book.java
@@ -0,0 +1,28 @@
+package org.example;
+
+class Book extends Item {
+ private String author;
+ private String publisher;
+ public Book(int id, String title, String genre, int releaseDate, double rentalFee, String author, String publisher) {
+ super(id, title, genre, releaseDate);
+ this.author = author;
+ this.publisher = publisher;
+ this.available = true;
+ }
+
+ public String getAuthor() {
+ return author;
+ }
+
+ public String getPublisher() {
+ return publisher;
+ }
+
+ public void rent() {
+ // برای اجاره کردن کتاب
+ }
+
+ public void returnItem() {
+ // برای برگردوندن یک کتاب
+ }
+}
diff --git a/RentalProject/src/main/java/org/example/Customer.java b/RentalProject/src/main/java/org/example/Customer.java
new file mode 100644
index 0000000..e539e3b
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/Customer.java
@@ -0,0 +1,65 @@
+package org.example;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Customer {
+ private String name;
+ private String email;
+ private String phone;
+ private String address;
+ private int id;
+ public ArrayList rentals;
+
+
+ public Customer(String name, String email, String phone, String address, int id) {
+ this.name = name;
+ this.email = email;
+ this.phone = phone;
+ this.address = address;
+ this.id = id;
+ rentals=new ArrayList<>();
+
+ }
+
+ public int getId() {
+ return this.id;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public String getEmail() {
+ return this.email;
+ }
+
+ public String getPhone() {
+ return this.phone;
+ }
+
+
+
+ public String getAddress() {
+ return this.address;
+ }
+ public void setRentals(ArrayList rentals) {
+
+ this.rentals = rentals;
+ }
+ public ArrayListgetRentals(){
+ return rentals;
+ }
+
+
+
+
+
+
+ public void addRental(Rental rental) {
+ if (rentals==null)
+ rentals=new ArrayList<>();
+ rentals.add(rental);
+ }
+}
+
diff --git a/RentalProject/src/main/java/org/example/Game.java b/RentalProject/src/main/java/org/example/Game.java
new file mode 100644
index 0000000..919f54d
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/Game.java
@@ -0,0 +1,29 @@
+package org.example;
+
+
+class Game extends Item {
+ private String platform;
+ private String publisher;
+
+ public Game(int id, String title, String genre, int releaseDate, String platform, String publisher) {
+ super(id, title, genre, releaseDate);
+ this.platform = platform;
+ this.publisher = publisher;
+ }
+
+ public String getPlatform() {
+ return platform;
+ }
+
+ public String getPublisher() {
+ return publisher;
+ }
+
+ public void rent() {
+ // برای قرض گرفتن یک بازی
+ }
+
+ public void returnItem() {
+ // برای پس دادن یک بازی
+ }
+}
\ No newline at end of file
diff --git a/RentalProject/src/main/java/org/example/Item.java b/RentalProject/src/main/java/org/example/Item.java
new file mode 100644
index 0000000..2cb0d73
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/Item.java
@@ -0,0 +1,41 @@
+package org.example;
+
+
+public class Item {
+ public int id;
+ public String title;
+ public String genre;
+ public String releaseDate;
+ public boolean available = true
+ ;
+
+ public Item(int id, String title, String genre, int releaseDate) {
+ this.id = id;
+ this.title = title;
+ this.genre = genre;
+ this.releaseDate = String.valueOf(releaseDate);
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public String getGenre() {
+ return genre;
+ }
+
+ public String getReleaseDate() {
+ return releaseDate;
+ }
+
+ public boolean isAvailable() {
+ return available;
+ }
+ public void setAvailable(boolean status){
+ available=status;
+ }
+}
diff --git a/RentalProject/src/main/java/org/example/Main.java b/RentalProject/src/main/java/org/example/Main.java
new file mode 100644
index 0000000..3e2d3c2
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/Main.java
@@ -0,0 +1,56 @@
+package org.example;
+import com.google.gson.Gson;
+import com.google.gson.reflect.TypeToken;
+
+import java.io.*;
+import java.util.List;
+
+
+public class Main {
+ public static void main(String[] args) throws IOException {
+// System.out.println("Hello world!");
+ RentalStore rentalStore = new RentalStore();
+ Gson gson = new Gson();
+ Reader reader = new FileReader("C:\\Users\\Lenovo\\Desktop\\rentalclone\\RentalSystem\\RentalProject\\src\\test\\java\\TestYourFork (1).json");
+ AllModules models = gson.fromJson(reader, new TypeToken() {
+ }.getType());
+ String test = gson.toJson(models);
+ Customer joshn = models.getCustomers().get(0);
+ Customer Emily = models.getCustomers().get(1);
+ Customer Brown = models.getCustomers().get(2);
+ for (Item item : models.getBooks()) {
+ if (item.id == 3) {
+ rentalStore.rentItem(item, joshn);
+ } else if (item.id == 6) {
+ rentalStore.rentItem(item, joshn);
+ }
+ }
+ for (Item item : models.getBooks()) {
+ if (item.id == 1) {
+ rentalStore.rentItem(item, Emily);
+ } else if (item.id == 7) {
+ rentalStore.rentItem(item, Emily);
+ }
+ }
+ for (Item item : models.getBooks()) {
+ if (item.id == 9) {
+ rentalStore.rentItem(item, Brown);
+ } else if (item.id == 4) {
+ rentalStore.rentItem(item, Brown);
+ }
+ }
+ reader.close();
+ Gson writing=new Gson();
+ String json = writing.toJson(models);
+ String filepath="C:\\Users\\Lenovo\\Desktop\\rentalclone\\RentalSystem\\RentalProject\\src\\test\\java\\TestYourFork (1).json";
+ try {
+ FileWriter writer= new FileWriter(filepath);
+ writer.write(json);
+ writer.close();
+ System.out.println("JSON DATA HAS BEEN UPDATED");
+ }catch (IOException e){
+ e.printStackTrace();
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/RentalProject/src/main/java/org/example/Movie.java b/RentalProject/src/main/java/org/example/Movie.java
new file mode 100644
index 0000000..c4517a8
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/Movie.java
@@ -0,0 +1,45 @@
+package org.example;
+
+
+public class Movie extends Item{
+ //private String title; از فایل اصلی باید پاک شن
+ //private String genre;
+ private String director;
+ private String cast;
+ //private boolean available;
+
+ public Movie(String title, String genre, String director, String cast, int releaseDate, int id) {
+ super(id,title,genre,releaseDate);
+ this.title = title;
+ this.genre = genre;
+ this.director = director;
+ this.cast = cast;
+ this.releaseDate = String.valueOf(releaseDate);
+ this.id=id;
+ this.available = true;
+ }
+
+
+
+ public String getTitle() {
+ return title;
+ }
+
+ public String getGenre() {
+ return genre;
+ }
+
+ public String getDirector() {
+ return director;
+ }
+
+ public String getCast() {
+ return cast;
+ }
+
+ public String getReleaseDate() {
+ return releaseDate;
+ }
+
+
+}
diff --git a/RentalProject/src/main/java/org/example/Rental.java b/RentalProject/src/main/java/org/example/Rental.java
new file mode 100644
index 0000000..8a3c1d7
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/Rental.java
@@ -0,0 +1,47 @@
+package org.example;
+
+
+import java.util.Date;
+
+public class Rental {
+ private Item item;
+ private Customer customer;
+ private int id;
+ public Date rentalDate=new Date();
+ public Date returnDate;
+
+ public Rental(Item item, Customer customer, int id) {
+ this.item = item;
+ this.customer = new Customer(customer.getName(), customer.getEmail(), customer.getPhone(), customer.getAddress(), customer.getId());
+ this.id = id;
+ this.rentalDate=new Date();
+ }
+
+ public int getId() {
+ return this.id;
+ }
+
+ public Item getItem() {
+ return this.item;
+ }
+
+ public Customer getCustomer() {
+ return this.customer;
+ }
+ public Date getRentalDate(){return this.rentalDate;}
+
+ public Date getReturnDate() {
+ return this.returnDate;
+ }
+ public void setRentalDate(Date rentalDate) {
+ this.rentalDate = rentalDate;
+ }
+
+ public void setReturnDate(Date date) {
+ this.returnDate = date;
+ }
+
+ public Item calculateLateFee() {
+ return null;
+ }
+}
\ No newline at end of file
diff --git a/RentalProject/src/main/java/org/example/RentalStore.java b/RentalProject/src/main/java/org/example/RentalStore.java
new file mode 100644
index 0000000..e4867fc
--- /dev/null
+++ b/RentalProject/src/main/java/org/example/RentalStore.java
@@ -0,0 +1,76 @@
+package org.example;
+
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class RentalStore {
+ private static List- items;
+ private static List customers;
+
+ public static ArrayList rentalList = new ArrayList<>();
+
+
+
+
+
+ public RentalStore() {
+ this.items= new ArrayList<>();
+ this.customers = new ArrayList<>();
+ }
+
+ public void register(Customer customer) {
+ this.customers.add(customer);
+ }
+
+ public void addMovie(Item item) {
+ this.items.add(item);
+ }
+
+ public void removeItem(Item item) {
+ this.items.remove(item);
+ }
+
+ public List
- getAvailableItems() {
+ List
- availableItem = new ArrayList<>();
+ for (Item item : this.items) {
+ if (item.isAvailable()) {
+ availableItem.add(item);
+ }
+ }
+ return availableItem;
+ }
+
+ public void rentItem(Item item, Customer customer) {
+ if (item.isAvailable()) {
+ int rentalId=0;
+ Rental rental = new Rental(item, customer, rentalId++);
+ item.setAvailable(false);
+ customer.addRental(rental);
+ }
+ }
+
+ public void returnItem(Rental rental) {
+ rental.getItem().setAvailable(true);
+ rental.setReturnDate(new Date());
+ }
+
+ public Customer getCustomerById(int id) {
+ for (Customer customer : this.customers) {
+ if (customer.getId() == id) {
+ return customer;
+ }
+ }
+ return null;
+ }
+
+ public Item getItemById(int id) {
+ for (Item item : this.items) {
+ if (item.getId() == id) {
+ return item;
+ }
+ }
+ return null;
+ }
+}
diff --git a/RentalProject/src/test/java/TestYourFork (1).json b/RentalProject/src/test/java/TestYourFork (1).json
new file mode 100644
index 0000000..0119bac
--- /dev/null
+++ b/RentalProject/src/test/java/TestYourFork (1).json
@@ -0,0 +1,381 @@
+{
+ "customers": [
+ {
+ "name": "John Smith",
+ "email": "johnsmith@example.com",
+ "phone": "1234567890",
+ "address": "123 Main Street",
+ "id": 1,
+ "rentals": [
+ {
+ "item": {
+ "author": "F. Scott Fitzgerald",
+ "publisher": "Charles Scribner\u0027s Sons",
+ "id": 6,
+ "title": "The Great Gatsby",
+ "genre": "Fiction",
+ "releaseDate": "1925-04-10",
+ "available": false
+ },
+ "customer": {
+ "name": "John Smith",
+ "email": "johnsmith@example.com",
+ "phone": "1234567890",
+ "address": "123 Main Street",
+ "id": 1,
+ "rentals": []
+ },
+ "id": 0,
+ "rentalDate": "May 25, 2023 1:27:56 AM"
+ }
+ ]
+ },
+ {
+ "name": "Emily Johnson",
+ "email": "emilyjohnson@example.com",
+ "phone": "9876543210",
+ "address": "456 Oak Avenue",
+ "id": 2,
+ "rentals": [
+ {
+ "item": {
+ "author": "Alice Thompson",
+ "publisher": "Penguin Books",
+ "id": 1,
+ "title": "The Secret Garden",
+ "genre": "Fiction",
+ "releaseDate": "2022-03-15",
+ "available": false
+ },
+ "customer": {
+ "name": "Emily Johnson",
+ "email": "emilyjohnson@example.com",
+ "phone": "9876543210",
+ "address": "456 Oak Avenue",
+ "id": 2,
+ "rentals": []
+ },
+ "id": 0,
+ "rentalDate": "May 25, 2023 1:27:56 AM"
+ },
+ {
+ "item": {
+ "author": "J.K. Rowling",
+ "publisher": "Bloomsbury Publishing",
+ "id": 7,
+ "title": "Harry Potter and the Philosopher\u0027s Stone",
+ "genre": "Fantasy",
+ "releaseDate": "1997-06-26",
+ "available": false
+ },
+ "customer": {
+ "name": "Emily Johnson",
+ "email": "emilyjohnson@example.com",
+ "phone": "9876543210",
+ "address": "456 Oak Avenue",
+ "id": 2,
+ "rentals": []
+ },
+ "id": 0,
+ "rentalDate": "May 25, 2023 1:27:56 AM"
+ }
+ ]
+ },
+ {
+ "name": "Michael Brown",
+ "email": "michaelbrown@example.com",
+ "phone": "5555555555",
+ "address": "789 Elm Street",
+ "id": 3,
+ "rentals": [
+ {
+ "item": {
+ "author": "Harper Lee",
+ "publisher": "J. B. Lippincott \u0026 Co.",
+ "id": 4,
+ "title": "To Kill a Mockingbird",
+ "genre": "Classic",
+ "releaseDate": "1960-07-11",
+ "available": false
+ },
+ "customer": {
+ "name": "Michael Brown",
+ "email": "michaelbrown@example.com",
+ "phone": "5555555555",
+ "address": "789 Elm Street",
+ "id": 3,
+ "rentals": []
+ },
+ "id": 0,
+ "rentalDate": "May 25, 2023 1:27:56 AM"
+ }
+ ]
+ }
+ ],
+ "books": [
+ {
+ "author": "Alice Thompson",
+ "publisher": "Penguin Books",
+ "id": 1,
+ "title": "The Secret Garden",
+ "genre": "Fiction",
+ "releaseDate": "2022-03-15",
+ "available": false
+ },
+ {
+ "author": "Benjamin Martin",
+ "publisher": "HarperCollins",
+ "id": 2,
+ "title": "The Alchemist",
+ "genre": "Fantasy",
+ "releaseDate": "2021-07-01",
+ "available": true
+ },
+ {
+ "author": "Jane Austen",
+ "publisher": "Thomas Egerton",
+ "id": 3,
+ "title": "Pride and Prejudice",
+ "genre": "Romance",
+ "releaseDate": "1813-01-28",
+ "available": false
+ },
+ {
+ "author": "Harper Lee",
+ "publisher": "J. B. Lippincott \u0026 Co.",
+ "id": 4,
+ "title": "To Kill a Mockingbird",
+ "genre": "Classic",
+ "releaseDate": "1960-07-11",
+ "available": false
+ },
+ {
+ "author": "George Orwell",
+ "publisher": "Secker \u0026 Warburg",
+ "id": 5,
+ "title": "1984",
+ "genre": "Dystopian",
+ "releaseDate": "1949-06-08",
+ "available": true
+ },
+ {
+ "author": "F. Scott Fitzgerald",
+ "publisher": "Charles Scribner\u0027s Sons",
+ "id": 6,
+ "title": "The Great Gatsby",
+ "genre": "Fiction",
+ "releaseDate": "1925-04-10",
+ "available": false
+ },
+ {
+ "author": "J.K. Rowling",
+ "publisher": "Bloomsbury Publishing",
+ "id": 7,
+ "title": "Harry Potter and the Philosopher\u0027s Stone",
+ "genre": "Fantasy",
+ "releaseDate": "1997-06-26",
+ "available": false
+ },
+ {
+ "author": "J.R.R. Tolkien",
+ "publisher": "George Allen \u0026 Unwin",
+ "id": 8,
+ "title": "The Hobbit",
+ "genre": "Fantasy",
+ "releaseDate": "1937-09-21",
+ "available": true
+ },
+ {
+ "author": "J.D. Salinger",
+ "publisher": "Little, Brown and Company",
+ "id": 9,
+ "title": "The Catcher in the Rye",
+ "genre": "Coming-of-age",
+ "releaseDate": "1951-07-16",
+ "available": false
+ },
+ {
+ "author": "C.S. Lewis",
+ "publisher": "Geoffrey Bles",
+ "id": 10,
+ "title": "The Chronicles of Narnia: The Lion, the Witch, and the Wardrobe",
+ "genre": "Fantasy",
+ "releaseDate": "1950-10-16",
+ "available": true
+ }
+ ],
+ "games": [
+ {
+ "publisher": "Nintendo",
+ "id": 1,
+ "title": "The Legend of Zelda: Breath of the Wild",
+ "genre": "Action-Adventure",
+ "releaseDate": "2017-03-03",
+ "available": true
+ },
+ {
+ "publisher": "Rockstar Games",
+ "id": 2,
+ "title": "Red Dead Redemption 2",
+ "genre": "Action-Adventure",
+ "releaseDate": "2018-10-26",
+ "available": true
+ },
+ {
+ "publisher": "CD Projekt",
+ "id": 3,
+ "title": "The Witcher 3: Wild Hunt",
+ "genre": "Action-RPG",
+ "releaseDate": "2015-05-19",
+ "available": true
+ },
+ {
+ "publisher": "Nintendo",
+ "id": 4,
+ "title": "Super Mario Odyssey",
+ "genre": "Platformer",
+ "releaseDate": "2017-10-27",
+ "available": true
+ },
+ {
+ "publisher": "Santa Monica Studio",
+ "id": 5,
+ "title": "God of War (2018)",
+ "genre": "Action-Adventure",
+ "releaseDate": "2018-04-20",
+ "available": true
+ },
+ {
+ "publisher": "Rockstar Games",
+ "id": 6,
+ "title": "Grand Theft Auto V",
+ "genre": "Action-Adventure",
+ "releaseDate": "2013-09-17",
+ "available": true
+ },
+ {
+ "publisher": "Mojang Studios",
+ "id": 7,
+ "title": "Minecraft",
+ "genre": "Sandbox",
+ "releaseDate": "2011-11-18",
+ "available": true
+ },
+ {
+ "publisher": "Naughty Dog",
+ "id": 8,
+ "title": "The Last of Us Part II",
+ "genre": "Action-Adventure",
+ "releaseDate": "2020-06-19",
+ "available": true
+ },
+ {
+ "publisher": "Bethesda Game Studios",
+ "id": 9,
+ "title": "Fallout 4",
+ "genre": "Action-RPG",
+ "releaseDate": "2015-11-10",
+ "available": true
+ },
+ {
+ "publisher": "Ubisoft Montreal",
+ "id": 10,
+ "title": "Assassin\u0027s Creed Valhalla",
+ "genre": "Action-Adventure",
+ "releaseDate": "2020-11-10",
+ "available": true
+ }
+ ],
+ "movies": [
+ {
+ "director": "Christopher Nolan",
+ "cast": "Leonardo DiCaprio, Joseph Gordon-Levitt",
+ "id": 1,
+ "title": "Inception",
+ "genre": "Sci-Fi",
+ "releaseDate": "2010-07-16",
+ "available": true
+ },
+ {
+ "director": "Frank Darabont",
+ "cast": "Tim Robbins, Morgan Freeman",
+ "id": 2,
+ "title": "The Shawshank Redemption",
+ "genre": "Drama",
+ "releaseDate": "1994-09-23",
+ "available": true
+ },
+ {
+ "director": "Christopher Nolan",
+ "cast": "Christian Bale, Heath Ledger",
+ "id": 3,
+ "title": "The Dark Knight",
+ "genre": "Action",
+ "releaseDate": "2008-07-18",
+ "available": true
+ },
+ {
+ "director": "Quentin Tarantino",
+ "cast": "John Travolta, Uma Thurman",
+ "id": 4,
+ "title": "Pulp Fiction",
+ "genre": "Crime",
+ "releaseDate": "1994-10-14",
+ "available": true
+ },
+ {
+ "director": "Francis Ford Coppola",
+ "cast": "Marlon Brando, Al Pacino",
+ "id": 5,
+ "title": "The Godfather",
+ "genre": "Crime",
+ "releaseDate": "1972-03-24",
+ "available": true
+ },
+ {
+ "director": "David Fincher",
+ "cast": "Brad Pitt, Edward Norton",
+ "id": 6,
+ "title": "Fight Club",
+ "genre": "Drama",
+ "releaseDate": "1999-10-15",
+ "available": true
+ },
+ {
+ "director": "Lana Wachowski, Lilly Wachowski",
+ "cast": "Keanu Reeves, Laurence Fishburne",
+ "id": 7,
+ "title": "The Matrix",
+ "genre": "Sci-Fi",
+ "releaseDate": "1999-03-31",
+ "available": true
+ },
+ {
+ "director": "Robert Zemeckis",
+ "cast": "Tom Hanks, Robin Wright",
+ "id": 8,
+ "title": "Forrest Gump",
+ "genre": "Drama",
+ "releaseDate": "1994-07-06",
+ "available": true
+ },
+ {
+ "director": "Peter Jackson",
+ "cast": "Elijah Wood, Ian McKellen",
+ "id": 9,
+ "title": "The Lord of the Rings: The Fellowship of the Ring",
+ "genre": "Fantasy",
+ "releaseDate": "2001-12-19",
+ "available": true
+ },
+ {
+ "director": "Joss Whedon",
+ "cast": "Robert Downey Jr., Chris Evans",
+ "id": 10,
+ "title": "The Avengers",
+ "genre": "Action",
+ "releaseDate": "2012-04-11",
+ "available": true
+ }
+ ]
+}
\ No newline at end of file
diff --git a/RentalProject/target/classes/org/example/AllModules.class b/RentalProject/target/classes/org/example/AllModules.class
new file mode 100644
index 0000000..7b9ebee
Binary files /dev/null and b/RentalProject/target/classes/org/example/AllModules.class differ
diff --git a/RentalProject/target/classes/org/example/Book.class b/RentalProject/target/classes/org/example/Book.class
new file mode 100644
index 0000000..6c31859
Binary files /dev/null and b/RentalProject/target/classes/org/example/Book.class differ
diff --git a/RentalProject/target/classes/org/example/Customer.class b/RentalProject/target/classes/org/example/Customer.class
new file mode 100644
index 0000000..a6db6d7
Binary files /dev/null and b/RentalProject/target/classes/org/example/Customer.class differ
diff --git a/RentalProject/target/classes/org/example/Game.class b/RentalProject/target/classes/org/example/Game.class
new file mode 100644
index 0000000..c443844
Binary files /dev/null and b/RentalProject/target/classes/org/example/Game.class differ
diff --git a/RentalProject/target/classes/org/example/Item.class b/RentalProject/target/classes/org/example/Item.class
new file mode 100644
index 0000000..4169f07
Binary files /dev/null and b/RentalProject/target/classes/org/example/Item.class differ
diff --git a/RentalProject/target/classes/org/example/Main$1.class b/RentalProject/target/classes/org/example/Main$1.class
new file mode 100644
index 0000000..a052623
Binary files /dev/null and b/RentalProject/target/classes/org/example/Main$1.class differ
diff --git a/RentalProject/target/classes/org/example/Main.class b/RentalProject/target/classes/org/example/Main.class
new file mode 100644
index 0000000..31a102b
Binary files /dev/null and b/RentalProject/target/classes/org/example/Main.class differ
diff --git a/RentalProject/target/classes/org/example/Movie.class b/RentalProject/target/classes/org/example/Movie.class
new file mode 100644
index 0000000..7cb25c2
Binary files /dev/null and b/RentalProject/target/classes/org/example/Movie.class differ
diff --git a/RentalProject/target/classes/org/example/Rental.class b/RentalProject/target/classes/org/example/Rental.class
new file mode 100644
index 0000000..3007202
Binary files /dev/null and b/RentalProject/target/classes/org/example/Rental.class differ
diff --git a/RentalProject/target/classes/org/example/RentalStore.class b/RentalProject/target/classes/org/example/RentalStore.class
new file mode 100644
index 0000000..4f4dfc5
Binary files /dev/null and b/RentalProject/target/classes/org/example/RentalStore.class differ
diff --git a/RentalTest/pom.xml b/RentalTest/pom.xml
new file mode 100644
index 0000000..fa4cf26
--- /dev/null
+++ b/RentalTest/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+
+ org.example
+ RentalTest
+ 1.0-SNAPSHOT
+
+
+ 8
+ 8
+ UTF-8
+
+
+
\ No newline at end of file