Skip to content
Snippets Groups Projects
Commit 818d1fe9 authored by thibault.capt's avatar thibault.capt
Browse files

update affichage

parent 5c98ea4e
No related branches found
No related tags found
No related merge requests found
......@@ -99,16 +99,17 @@ public class Matrix {
for (int i = 0; i < this.x; i++) {
if(i < this.x - 2)
System.out.print("AUX_" + i);
if(i < 10)
System.out.print("AUX_" + i + " | ");
else
System.out.print("AUX_" + i + "| ");
else if(i == this.x - 2)
System.out.print("X[0] ");
else System.out.print("OBJ. ");
System.out.print( " | ");
System.out.print("X[0] | ");
else System.out.print("OBJ. | ");
for (int j = 0; j < this.y; j++) {
System.out.format("%10.3f", this.data[i][j]);
}
System.out.println();
}
System.out.print("");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment