import java.util.Scanner;
import java.io.FileNotFoundException;
import java.io.File;

class Nov5 {
	public static void main(String[] args) {
		Scanner scanner = null;

		try {
			scanner = new Scanner(new File("boxes.txt"));
		}
		catch (FileNotFoundException e) {
			System.out.println("file not found");
			return;	
		}

        // Allocate array to hold 3 Box objects
		Box[] boxes = new Box[3];

		// Read in box dimensions from file, create Boxes, store in array
		int i = 0;
		while(scanner.hasNext()) {
			int w = scanner.nextInt();
			int h = scanner.nextInt();
			int l = scanner.nextInt();

			Box b = new Box(w, h, l);

			boxes[i] = b;
			i++;
		}	
	
		System.out.println("********");
		printArray(boxes);
	}

	static void printArray(Box[] arr) {
		for(Box b : arr) {
			System.out.println(b.toString());
		}
	}
}

// end of file
