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

class Apr11 {

	public static void main(String[] args) {
		// PrintWriter

		String filename = "out.txt";

		PrintWriter pw = null;
		try {
			pw = new PrintWriter(new File(filename));
		}
		catch (FileNotFoundException e) {
			System.out.println("File not found");
			return;
		}

		pw.println("hello world!");

		Box b = new Box(3,6,9,100000000);
		pw.println(b);

		Scanner kb = new Scanner(System.in);

		int input;
		do {
			System.out.print("Please enter an integer: ");
			input = kb.nextInt();
			pw.println(input);
		} while(input != 0);		

		int[][] matrix = {{1,8,3}, {6,5,4}, {7,2,9}};

		//matrix[0][0] = 1;
		//matrix[0][1] = 8;
		//...
	
		//pw.println(matrix);

		for(int[] row : matrix) {
			for(int elm : row) {
				pw.print(elm + " ");
			}
			pw.println();
		}

		// Create an instance of shoe and print fields to file

		Shoe s = new Shoe("Nike", "Airmax", 12, "wide");
		pw.println(s);	

		s.setWidth("standard");
		pw.println(s);	

		kb.close();
		pw.close();
	}

}

