title: Observable List
body: <p>when trying to declare a new <code>ObservableList</code>: </p>
  
  <p><code>ObservableList&lt;Account&gt; userAccounts = new FXCollections.observableArrayList();</code></p>
  
  <p>I am getting an error at <code>observableArrayList();</code> which says:</p>
  
  <blockquote>
    <p>cannot find symbol, symbol: class <code>observableArrayList</code>, location: class <code>FXCollections</code>. </p>
  </blockquote>
  
  <p>Here are my import statements </p>
  
  <pre><code>import javafx.collections.FXCollections;
  import javafx.collections.ObservableList;
  </code></pre>
  
  <p>And here is my method</p>
  
  <pre><code>public ObservableList&lt;Account&gt; getUsersAccounts(int memberID) { 
      ObservableList&lt;Account&gt; userAccounts = new FXCollections.observableArrayList();
  
      try {     
          Statement stmt = conn.createStatement();            
          String sql = "SELECT * FROM account WHERE member_id='" + memberID + "'";            
          ResultSet rs = stmt.executeQuery(sql);
  
          while(rs.next()) {
              Account account = new Account(rs.getInt("member_id"), rs.getString("account_type"), rs.getDouble("balance"));
              userAccounts.add(account);
          }
      } catch (SQLException ex) {
          Logger.getLogger(JDBCManager.class.getName()).log(Level.SEVERE, null, ex);
      }
  
      return userAccounts;
  }
  </code></pre>
  
  <p>What am I missing, why can't I declare a new <code>ObservableList</code>?</p>