Commit 2ea5faf1 authored by User's avatar User

edit

parent b875b8ff
...@@ -60,7 +60,7 @@ public class reservation { ...@@ -60,7 +60,7 @@ public class reservation {
for(int s=0; s<1; s++) { for(int s=0; s<1; s++) {
for(int r=0; r<3; r++) { for(int r=0; r<3; r++) {
System.out.println(plane[s][r] + reserve); System.out.println(plane[s][r] + reserve);
if(plane[s][r] != reserve) { if(plane[s][r] == reserve) {
System.out.println("Seat " + reserve + " has been booked for you"); System.out.println("Seat " + reserve + " has been booked for you");
plane[s][r] = "XX"; plane[s][r] = "XX";
display(plane); display(plane);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment