title: How should I implement removal of rightmost half of my custom Linkedlist
body: <p>Write the method <code>removeRightmostHalf</code> member of the class <code>LinkedList</code>. Do not call any methods of the class and do not use any auxiliary data structures.</p>
  
  <p>If <code>l</code> contains <code>A! B! C! D! E</code>,  then  after  calling <code>l.removeRightmostHalf()</code>, <code>l</code> becomes <code>A! B! C</code>.</p>
  
  <pre><code>int size = 0 ; 
  int halfSize = 0;
  current = head;
  while (current.next != null) {
      ++size;
      current=current.next;
  }
  ++size;
  
  if (size % 2 == 0) {
      halfSize = (size / 2);
      for (int i = halfSize + 1; i &lt; size; i++) {
      }
  }
  </code></pre>
  
  <p>I do not know how I will remove inside for loop.
  Any help!</p>