From 4ac94f9ce1ff36132f26e2852f9be27cab4aa521 Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Sun, 5 Mar 2023 00:59:56 +0100 Subject: [PATCH] Made result a global variable So it can be used by other methods --- src/Matrix.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Matrix.java b/src/Matrix.java index b58f6dc..511de65 100644 --- a/src/Matrix.java +++ b/src/Matrix.java @@ -4,12 +4,14 @@ import java.io.FileReader; import java.io.IOException; public class Matrix { + private String[] result; + public static void main(String[] args) { } public String[] importCSV(String file) { - String[] result = new String[100]; + result = new String[100]; String line; try { BufferedReader br = new BufferedReader(new FileReader(file));