Made result a global variable

So it can be used by other methods
This commit is contained in:
AustrianToast 2023-03-05 00:59:56 +01:00
parent 442ee37075
commit 4ac94f9ce1

View File

@ -4,12 +4,14 @@ import java.io.FileReader;
import java.io.IOException; import java.io.IOException;
public class Matrix { public class Matrix {
private String[] result;
public static void main(String[] args) { public static void main(String[] args) {
} }
public String[] importCSV(String file) { public String[] importCSV(String file) {
String[] result = new String[100]; result = new String[100];
String line; String line;
try { try {
BufferedReader br = new BufferedReader(new FileReader(file)); BufferedReader br = new BufferedReader(new FileReader(file));