title: Like counter in array list keep returning 0
body: <p>I try to do the like counter for forum threads. This is my code:  </p>
  
  <p>When like button is on click, it will insert the value into database.</p>
  
  <pre><code>public void submitLike(ActionEvent e) {
      int count = 0;
      int newCount = count + 1;
      eForumLikeDislike amount = new eForumLikeDislike(userName,topicId,newCount);
      amount.likeCounter();
  }
  </code></pre>
  
  <p>The <code>SQL statement</code> which I insert like when it is on click.</p>
  
  <pre><code> public void SetUpLikeAmount() {
      int likes = 0;
      ArrayList &lt;Integer&gt; likeArray = new ArrayList &lt;Integer&gt;();
      for (int count = 0; count &lt; likeArray.size();count++){
      // Set Up Database Source
      db.setUp("IT Innovation Project");
      String sql = "Select likeDislike_likes from forumLikeDislike WHERE topic_id = "
              + topicId + "";
      ResultSet resultSet = null;
      // Call readRequest to get the result
      resultSet = db.readRequest(sql);
      try {
          while (resultSet.next()) {
              likeArray.add(Integer.parseInt(resultSet.getString("likeDislike_likes")));
          }
          resultSet.close();
      } catch (Exception e) {
          System.out.println(e);
      }
      likes += likeArray.get(count);
      }
      jLabel_like.setText(Integer.toString(likes));
  }
  </code></pre>
  
  <p>The method which I try to display the total likes of certain thread.</p>
  
  <pre><code>public void SetUpLikeAmount() {
      int likes = 0;
      ArrayList &lt;Integer&gt; likeArray = new ArrayList &lt;Integer&gt;();
      for (int count = 0; count &lt; likeArray.size();count++) {
          // Set Up Database Source
          db.setUp("IT Innovation Project");
          String sql = "Select likeDislike_likes from forumLikeDislike WHERE topic_id = "
                       + topicId + "";
          ResultSet resultSet = null;
          // Call readRequest to get the result
          resultSet = db.readRequest(sql);
          try {
              while (resultSet.next()) {
                  likes = Integer.parseInt(resultSet.getString("likeDislike_likes"));
                  likes += likeArray.get(count);
              }
              resultSet.close();
          } catch (Exception e) {
              System.out.println(e);
          }
  
      }
      jLabel_like.setText(Integer.toString(likes));
  }
  </code></pre>
  
  <p>However, the amount keep returning me 0. Is there something wrong? How can I fix it?<br>
  Thanks in advance.</p>