From bff1957f2556772609c112a8584f9e4445b7b57b Mon Sep 17 00:00:00 2001
From: "thibault.capt" <thibault.capt@etu.hesge.ch>
Date: Mon, 16 Jan 2023 13:17:47 +0100
Subject: [PATCH] print

---
 src/Matrix.java | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/Matrix.java b/src/Matrix.java
index 7ef7da3..f893d1d 100644
--- a/src/Matrix.java
+++ b/src/Matrix.java
@@ -81,31 +81,37 @@ public class Matrix {
         System.out.println("---------------------------");
         System.out.println(s);
         System.out.println("---------------------------");
-        System.out.print("COLS:          ");
+        System.out.print("COLS:              ");
         for (int i = 0; i < nbX; i++) {
             System.out.format("X[%d]      ", i);
         }
 
         for (int i = 0; i < nbZ; i++) {
-            System.out.format("Z[%d]      ", i);
+            if (i < 10)
+                System.out.format("Z[%d]      ", i);
+            else
+                System.out.format("Z[%d]     ", i);
         }
 
-        System.out.format("S[%d]      ", this.y / 2);
+        System.out.format("S[%d]     ", this.y / 2);
 
         for (int i = 0; i < nbAux; i++) {
-            System.out.format("A[%d]      ", i);
+            if (i < 10)
+                System.out.format("A[%d]      ", i);
+            else
+                System.out.format("A[%d]     ", i);
         }
         System.out.println();
 
         for (int i = 0; i < this.x; i++) {
             if (i < this.x - 2)
                 if (i < 10)
-                    System.out.print("AUX_" + i + " |   ");
+                    System.out.print("AUX_" + i + "     |   ");
                 else
-                    System.out.print("AUX_" + i + "|   ");
+                    System.out.print("AUX_" + i + "    |   ");
             else if (i == this.x - 2)
-                System.out.print("X[0]  |   ");
-            else System.out.print("OBJ.  |   ");
+                System.out.print("OBJ. Init |   ");
+            else System.out.print("OBJ.      |   ");
             for (int j = 0; j < this.y; j++) {
                 System.out.format("%10.3f", this.data[i][j]);
             }
-- 
GitLab