Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Theater() {
- seats = new double[3][4];
- totalSales = 0;
- String inputFileName = "seatPrices.txt";
- File inputFile = new File(inputFileName);
- Scanner in = null;
- try {
- in = new Scanner(inputFile);
- } catch (FileNotFoundException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- for (int i = 0; i < 3; i++) {
- for (int j = 0; j < 4; j++) {
- seats[i][j] = in.nextDouble();
- // System.out.println("["+i+"] ["+j+"] = "+ in.nextDouble());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement