//Name: Maryam shaheen //ID: 1140427 //Comp231 Assignment#2 import java.util.*;//importing everything in java public class Driver {// the beginning of the Driver Class private static Scanner input; public static void main(String[] args) {// the beginning of the main method input = new Scanner(System.in); Library L = new Library();//creating an object of Library System.out.println(" **Please enter the informations of 10 movies**");//print statement for (int i = 0; i < 10; i++) {//for loop for asking the user to enter the informations of the movies and Scanne's the vales System.out.println("Enter for the informations for the movie number "+(i+1)+": ");//print statement for showing the number of the movie System.out.println("Enter Title: ");//print statement asks the user to enter the title of the movie String title = input.next();//Scanning the title System.out.println("Enter Starring:");//print statement asks the user to enter the starring of the movie String starring = input.next();//Scanning the starring System.out.println("Enter running time: ");//print statement asks the user to enter the runningTime of the movie String runningTime = input.next();//Scanning the runongTime System.out.println("Enter Country: ");//print statement asks the user to enter the country of the movie String country = input.next();//Scanning the country System.out.println("Enter Language: ");//print statement asks the user to enter the language of the movie String language =input.next();//Scanning the language Movie m = new Movie(title, starring,runningTime, country, language, true);//creating a new object of movie by invoking the constructor with arguments L.addMovie(m);//invoking the addMovie method by the object of Library } L.borrowMovie(5);//invoking the borrowMovie method by the object of Library L.borrowMovie(6);//invoking the borrowMovie method by the object of Library L.borrowMovie(5);//invoking the borrowMovie method by the object of Library L.returnMovie(6);//invoking the returnMovie method by the object of Library L.printAvailableMovies();//invoking the printAvailableMovies method by the object of Library }// the end of the main method }// the end of the Driver