Java 求两个矩阵的布尔积

Java 求两个矩阵的布尔积,java,matrix,boolean,Java,Matrix,Boolean,我的错误: Exception in thread "main" java.lang.Error: Unresolved compilation problem: at BooleanProduct.main(BooleanProduct.java:4) 代码块 Multiple markers at this line - B cannot be resolved to a (ln51) variable - n cannot be resolved to a (ln53) varia

我的错误:

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
at BooleanProduct.main(BooleanProduct.java:4)
代码块

Multiple markers at this line
- B cannot be resolved to a (ln51)
 variable
- n cannot be resolved to a (ln53)
 variable
- A cannot be resolved to a (ln54)
 variable

相应地缩进你的代码,检查它,然后在有特定问题时返回。尝试重新编译类。我确实有一个特定的问题。。。我需要帮助解决错误。你想让我说得更具体些吗?如果你正确地缩进了你的代码,你会在来到这里询问之前发现错误,这就是我要说的。听着,如果你想成为一个明智的人,甚至不必回答。大多数人都知道我有什么问题。也许我不是最好的程序员,我现在正在努力学习,我在学校。所以我只是不知道如何形成我的问题。
Multiple markers at this line
- B cannot be resolved to a (ln51)
 variable
- n cannot be resolved to a (ln53)
 variable
- A cannot be resolved to a (ln54)
 variable
int[][] C = booleanProduct(A, B, n);
{ // not necessary
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            System.out.print(C[i][j] + " ");
        }
        System.out.println("");
    }
} // not necessary
public static void main(String[] args) {
    // ...

    int[][] C = booleanProduct(A, B, n);
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            System.out.print(C[i][j] + " ");
        }
        System.out.println("");
    }
}