Detect rows in a matrix

0

How do I ask if row 1 and row 2 are in a matrix?

I have the following code made so far:

public boolean intercambiar_Filas(int fila1, int fila2){
    double auxiliar;
    if(fila1 == fila2) {
      for (int j = 0; j < 4; j++) {
        auxiliar = this.A[fila1 - 1][j];
        this.A[fila1 - 1][j] = this.A[fila2 - 1][j];
        this.A[fila2 - 1][j] = auxiliar;
      }
    }
    return true;
}
    
asked by Duval Carvajal 10.06.2018 в 07:29
source

0 answers