public static void main(String[] args) {
		char again;
		int n,m;
		
		do{
			print("Enter the dimensions of the matrices: ");
			n = scan.nextInt();
			m = scan.nextInt();
			
			
			double[][] matrix1 = new double[n][m];
			double[][] matrix2 = new double[n][m];
			
			print("Enter the data for the first matrix: \n");
			input(matrix1);
			print("\nEnter data for the second matrix: \n");
			input(matrix2);
			
			print("The sum matrix is: \n");
			print(add(matrix1,matrix2));
			print("\n");
				
			print("Would you like to continue?(Y/N): ");
			again = scan.next().charAt(0);
		}while(again == 'y' || again == 'Y');
		return;
	}