From 818d1fe91475a01a35570e98d50885da343f9f2a Mon Sep 17 00:00:00 2001 From: "thibault.capt" <thibault.capt@etu.hesge.ch> Date: Mon, 16 Jan 2023 13:07:52 +0100 Subject: [PATCH] update affichage --- src/Matrix.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Matrix.java b/src/Matrix.java index fe8e3e7..53d8b67 100644 --- a/src/Matrix.java +++ b/src/Matrix.java @@ -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(""); } } -- GitLab