无法在firebase中托管角度2样本

时间:2017-05-31 04:45:13

标签: angular firebase

我已完成所有安装,并且我的角度2 app prod构建已准备就绪。在其中创建Dist文件夹。

一旦我做了firebase init,它就会要求我在选择列出的项目后主持项目,它说“Firebase初始化完成!”但它没有要求选择哪个文件夹和更多选项。

稍后如果我运行“firebase deploy”,我收到“错误:发生了意外错误。”问题是什么。请建议我

1 个答案:

答案 0 :(得分:0)

我只需要更新我的firebase.json,如下所示

import java.util.Scanner;

public class Matrices {

    int i, j, k, n = 3;
    int[][] matA = new int[n][n];
    int[][] matB = new int[n][n];
    int[][] matSum = new int[n][n];
    int[][] matProd = new int[n][n];

    public void readInput() {
        Scanner scan = new Scanner(System.in);
        for (i = 0; i < n; i++) {
            for (j = 0; j < n; j++) {
                System.out.println("matA[" + i + "][" + j + "]");
                matA[i][j] = scan.nextInt();
                System.out.println("matB[" + i + "][" + j + "]");
                matB[i][j] = scan.nextInt();
            }
        }
    }

    public void findSum() {
        for (i = 0; i < n; i++) {
            for (j = 0; j < n; j++) {
                matSum[i][j] = matA[i][j] + matB[i][j];
            }
        }
    }

    public void findProduct() {
        for (i = 0; i < n; i++) {
            for (j = 0; j < n; j++) {
                for (k = 0; k < n; k++) {
                    matProd[i][j] = matProd[i][j] + matA[i][j] * matB[i][j];
                }
            }
        }
    }

    public void displayResult() {
        // Printing the Sum Matrix
        System.out.println("Sum Matrix is:");
        for (i = 0; i < n; i++) {
            for (j = 0; j < n; j++) {
                System.out.println(matSum[i][j] + " ");
            }
        }

        // Printing the Product Matrix
        System.out.println("Product Matrix is:");
        for (i = 0; i < n; i++) {
            for (j = 0; j < n; j++) {
                System.out.println(matProd[i][j] + " ");
            }
        }
        System.out.println();
    }

    public static void main(String[] args) {

        System.out.println("Matrix Calculator");
        System.out.println("-------------------\n");
        Matrices self = new Matrices();

        self.readInput();
        self.findSum();
        self.findProduct();
        self.displayResult();
    }
}