title: How to test remove element in linked list?
body: <p>I have a Linked list below:</p>
  
  <p><a href="https://i.stack.imgur.com/LBoYt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LBoYt.png" alt="enter image description here"></a></p>
  
  <p>if I want to remove an element with this code:</p>
  
  <pre><code> int a = list1.remove(0);
  </code></pre>
  
  <p>so what verification code should I include to make sure this operation works correctly?</p>
  
  <p>Thank you and hope to receive answer from you soon.</p>