src/data_layer/Main.java
public static void main(String[] args) {
		HashMap<Integer, Theatre> theaterList = new HashMap<Integer, Theatre>();
		HashMap<Integer, Movie> movieList = new HashMap<Integer, Movie>();
		Controller controller = new Controller(theaterList, movieList);
		controller.loadAllInfo(); // Loading all necessary information to theaterList and movieList

		// Done like this to preserve the relationship in the UML diagram
		ArrayList<View> v = new ArrayList<View>();
		v.add(new LoginView(controller));
		v.add(new MenuView(controller));
		v.add(new AccountView(controller));
		v.add(new SeatView(controller));
		v.add(new PaymentView(controller));
		v.add(new ReservationView(controller));
		controller.setViews(v);

	}
// controller will handle the flow of data.
controller will handle the flow of data.
controller will handle the flow of data .
public static void main(String[] args) {
		HashMap<Integer, Theatre> theaterList = new HashMap<Integer, Theatre>();
		HashMap<Integer, Movie> movieList = new HashMap<Integer, Movie>();
		Controller controller = new Controller(theaterList, movieList);
		controller.loadAllInfo(); 
		ArrayList<View> v = new ArrayList<View>();
		v.add(new LoginView(controller));
		v.add(new MenuView(controller));
		v.add(new AccountView(controller));
		v.add(new SeatView(controller));
		v.add(new PaymentView(controller));
		v.add(new ReservationView(controller));
		controller.setViews(v);
	}
public static void main ( String [ ] args ) { HashMap < Integer , Theatre > theaterList = new HashMap < Integer , Theatre > ( ) ; HashMap < Integer , Movie > movieList = new HashMap < Integer , Movie > ( ) ; Controller controller = new Controller ( theaterList , movieList ) ; controller . loadAllInfo ( ) ; ArrayList < View > v = new ArrayList < View > ( ) ; v . add ( new LoginView ( controller ) ) ; v . add ( new MenuView ( controller ) ) ; v . add ( new AccountView ( controller ) ) ; v . add ( new SeatView ( controller ) ) ; v . add ( new PaymentView ( controller ) ) ; v . add ( new ReservationView ( controller ) ) ; controller . setViews ( v ) ; }
controller will handle the flow of data.
controller will handle the flow of data .
// Loading all necessary information to theaterList and movieList // Done like this to preserve the relationship in the UML diagram