Made result a global variable
So it can be used by other methods
This commit is contained in:
parent
442ee37075
commit
4ac94f9ce1
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user