Nheil John Abrantes ITP 1 Introduction To Java Programming 10 Hands On Activity 1
Nheil John Abrantes ITP 1 Introduction To Java Programming 10 Hands On Activity 1
ITP 1
Introduction to Java Programming
package SeatReservation;
import java.util.*;
import java.util.Scanner;
public class SeatReservation {
public static void main(String[] args) {
int n = 10;
int row=1;
int colmn=1;
while(row>0&&colmn>0){
row = sc.nextInt();
colmn = sc.nextInt();
if(row>0&&colmn>0){
aList.get((row-1)).set((colmn-1), "X");
}
}
if(row < 0 || colmn < 0){
System.out.println("Project exit!");
sc.close();
}
}
}