0
public class Conteudo {
public List<String> Matriz(String[] array){
String CaminhoArquivo=("C:\\Users\\jessica borges"
+ "\\Downloads\\CalculadoraMatrizes-20190315T112959Z-001"
+ "\\CalculadoraMatrizes-20190315T112959Z-001"
+ "\\CalculadoraMatrizes\\src\\ArquivosMatriz\\matrix.txt");
List<String> conteudo = new ArrayList<>();
try {
BufferedReader in = new BufferedReader(new FileReader(CaminhoArquivo));
String linha;
while ((linha = in.readLine()) != null) {
int var[] = new int[conteudo.size()];
conteudo.addAll(Arrays.asList(linha.split(" ")));
}
in.close();
} catch (IOException ioe) {
System.out.println(ioe);
}
System.out.println(conteudo);
return conteudo;
}
public void conteudo(String[] array){
}
}
I need to access the contents of this array to handle in another method.
public List<String> Matriz()
<< this method I want to take what it returns and treat in this other methodpublic void Matriz22()
– Jéssica Developer