title: No resume is printed out on my ListIterator case
body: <p>I have written following code for using the List Iterator function, why no result is printed out, can anyone tell me what is wrong ? thanks. </p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.ListIterator;
  
  
  
  public class MyTest {
  
      public static void main (String[] args){
  
          ArrayList&lt;String&gt; myList = new ArrayList&lt;String&gt;();
          myList.add("Apple");
          myList.add("Orange");
          myList.add("Banana");
          myList.add("Grape");
          myList.add("Water Melon");
  
  
          ListIterator&lt;String&gt; itr = myList.listIterator();
  
          while(itr.hasNext());
          System.out.println(itr.next());
  
          while(itr.hasPrevious());
          System.out.println(itr.previous());
  
      }
  
  }
  </code></pre>