title: Incrementing an integer in a recursive method doesn't work(LinkedList)
body: <p>Basically I don't know why my integer <code>n</code> doesn't get higher.<br>
  Thanks for every answer!</p>
  
  <pre><code>    public int n;
  
      public int firstIndexOf(T val) {
      if (val == this.getValue()) {
          return n;
      } else {
          if (val != this.getValue() &amp;&amp; this.next != null) {
              n++;
              return this.next.firstIndexOf(val);
  
          } else {
              return -1;
          }
      }
     }
  </code></pre>