title: Java, error no suitable method found for add()
body: <p>I need help with a java problem, when I compile it appears an error, and I already looked in other posts and could not solve if they can help me I will be very grateful.   </p>
  
  <p>code</p>
  
  <pre><code>import javax.swing.*;
  import java.sql.Connection;
  import java.sql.PreparedStatement;
  import java.sql.SQLException;
  import java.sql.ResultSet;
  import java.util.ArrayList;
  
  public class Sugestao{
     private int idSugestao;
     private String sugestao;
     private ArrayList&lt;JTextArea&gt; guardaSugestao;
  
     public Sugestao(){
        guardaSugestao = new ArrayList&lt;&gt;();
     }
     public Sugestao(int idSugestao){
        this.idSugestao = idSugestao;
        guardaSugestao = new ArrayList&lt;&gt;();
     }
     public Sugestao(int idSugestao, String sugestao){
        this.idSugestao = idSugestao;
        this.sugestao = sugestao;
        guardaSugestao = new ArrayList&lt;&gt;();
     }
     public int getIdSugestao(){
        return idSugestao;
     }
     public String getSugestao(){
        return sugestao;
     }
     public ArrayList&lt;JTextArea&gt; guardaSugestao(){
        return guardaSugestao;
     }
     public void setIdSugestao(int idSugestao){
        this.idSugestao = idSugestao;
     }
     public void setSugestao(String sugestao){
        this.sugestao = sugestao;
     }
     public void setGuardaSugestao(ArrayList&lt;JTextArea&gt; guardaSugestao){
        this.guardaSugestao = guardaSugestao;
     }
  
     public void adicionarSugestao(JTextArea jTextArea){
        guardaSugestao.add(jTextArea);
     }
  
     public ArrayList&lt;JTextArea&gt; carregaSugestao(Connection conn){
        String sqlSelect = "select id, sugestao from tabelaTeste where id_sugestao = ?";
        ArrayList&lt;JTextArea&gt; listaSugestao = new ArrayList&lt;&gt;();
  
        try(PreparedStatement stm = conn.prepareStatement(sqlSelect);){
           stm.setInt(1, getIdSugestao());
           try(ResultSet rs = stm.executeQuery();){
              while(rs.next()){
                 Sugestao s = new Sugestao();
                 s.setIdSugestao(rs.getInt("id_sugestao"));
                 s.setSugestao(rs.getString("sugestao")); 
                 listaSugestao.add(s); // error
              }
           }
           catch(Exception e){
              e.printStackTrace();
           }
           catch(SQLException e1){
              System.out.print(e1.getStackTrace());
           }
           return listaSugestao;
        }
     }
      public String toString() {
          return "Sugestao [id=" + idSugestao + ", sugestao :" + sugestao + "]";
      }
  }
  </code></pre>
  
  <p>This is the error that appears, I do not know how to solve.</p>
  
  <pre><code>error: no suitable method found for add(Sugestao)
  </code></pre>