title: returning an object from a method dealing with Linked List nodes
body: <p>i'm writing a method using linked list to delete even number indexes from the list (i'm not using <code>List&lt;object&gt; list = new LinkedList&lt;object&gt;()</code> &lt;--- i know this is kinda easier.., i'm implementing node class in this problem (which i'm really confused at right now.)</p>
  
  <p>Well, the problem tells me to delete the even number indexes from a <code>List</code>, and return a new <code>List</code>. But i don't know what to do here (this method is in <code>LinkedIntList</code> class that also contains <code>ListNode</code> class)? And please check my code if it's right or what i can do to improve.  Thanks.</p>
  
  <pre><code>public ????????? removeEvens() {
      ListNode current = front;
      while(current.next!= null) {
          current = current.next.next;
      }
      return ???????????;
  }
  </code></pre>
  
  <p><strong>EDIT</strong>: i've tried <code>NodeList</code> but it still give me an error so i guess i'll post a pic.</p>
  
  <p><img src="https://i.stack.imgur.com/Er5qH.png" alt="enter image description here"></p>