-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.java
32 lines (28 loc) · 926 Bytes
/
Program.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package de.bitbizeps.MovieStore;
import java.lang.*;
import java.util.*;
/**
* Note that Java console applications need to be run through the java runtime
* by running "java -jar JarFile.jar" in the command line.
* Java console applications can not be previewed in the Compilr IDE, only applets can.
*/
public class Program
{
/**
* This is the main entry point for the application
*/
public static void main(String args[])
{
String result;
System.out.println("Welcome to the Movie Store");
Movie m1 = new Movie("movie1", 1);
Movie m2 = new Movie("movie2", 2);
Rental r1 = new Rental(m1, 10);
Rental r2 = new Rental(m2, 5);
Customer c1 = new Customer("joe");
c1.addRental(r1); c1.addRental(r2);
System.out.println("Let's get the Statement");
result = c1.statement();
System.out.println(result);
}
}