public void trocaLinha(int linha1, int linha2) { complexo temp = new complexo(0, 0); for (int j = 0; j < this.colunas; j++) { temp.copiar(elementos[linha1][j]); this.elementos[linha1][j].copiar(this.elementos[linha2][j]); this.elementos[linha2][j].copiar(temp); } }