Professional Documents
Culture Documents
BookMyShow;
System.out.println(
"Choose the option from below : \n" + "1. To revisit
the Booking page \n" + "2. To return back");
int option = scan.nextInt();
for (;;) {
switch (option) {
case 1:
bookingPage(s);
break;
case 2:
return 0;
default:
System.out.println("Enter the correct input");
}
}
} else {
s.avaliableSeats=s.avaliableSeats-seats;
s.reservedSeats+=seats;
return seats;
}
}
}
}
public static BookMyShow getInstance() {
if(b==null)b=new BookMyShow();
return b;
}
} else {
System.out.println("The payment has been done successfully
");
billGenerator(name, phoneNo, email, seats, s);
break;
}
count++;
}
}
for (;;) {
System.out.println("Choose the option from below: \n" +
"1. To visit the page again\n" +
"2. To return ");
int option = scan.nextInt();
switch (option) {
case 1:
open();
break;
case 2:
return;
default:
System.out.println("Enter the correct input");
}
}
}