Method giving error when returning value

0

I have the following error:

  

can not find simbol.

It does not return the method, I reviewed it in my code and could not find anything wrong.

Follow the code below:

 public ArrayList<String> verificarUsuario(){

    try {
        FileInputStream arquivo = new FileInputStream(caminho+"\administrador.txt");
        InputStreamReader entrada = new InputStreamReader(arquivo);
        BufferedReader ler = new BufferedReader(entrada);
        String linha; 
        ArrayList<String>dados = new ArrayList<String>();
        do{
            linha = ler.readLine(); 

             if(linha!=null){
                 String[]palavra = linha.split(";");

                    for(int i =0;i<palavra.length;i++){
                      dados.add(palavra[i]); 

                   }
            }
       }
       while(linha!=null);

         arquivo.close();


    } catch (FileNotFoundException ex) {
        JOptionPane.showMessageDialog(null, "Erro: Arquivo não encontrado!");
    }catch(IOException err){
       JOptionPane.showMessageDialog(null, "Erro: "+err.getMessage());
    }        

     return dados;
}
    
asked by anonymous 01.03.2016 / 12:37

0 answers