title: JSOUP to get a un ordered list
body: <p>I am re posting this message.
  I am trying to extract a unordered list. In the previous question I have the fomrat incorrect.
  This website from where I am trying to extract the data is formatted correctly.</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;
  &lt;i&gt;
  &lt;a class="mw-redirect" title="title1" href="yahoo.com"&gt;used to be a best email&lt;/a&gt;
  &lt;/i&gt;
  (1999)
  &lt;/li&gt;
  &lt;li&gt;
  &lt;i&gt;
  &lt;a title="title2" href="google.com"&gt;Best search enginee We Will Go&lt;/a&gt;
  &lt;/i&gt;
  (1999)
  &lt;/li&gt;
  &lt;li&gt;
  &lt;i&gt;
  &lt;a title="title3" href="apple.com"&gt;Best Phone&lt;/a&gt;
  &lt;/i&gt;
  (1990)
  &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want to print:</p>
  
  <p>title1</p>
  
  <p>google.com</p>
  
  <p>yahoo.com</p>
  
  <p>=
  used to be a best email
  Best search email will go
  Bestphone</p>
  
  <p>similarly all Hrefs.</p>
  
  <p>I did see the JSOUP documentation.</p>
  
  <p>Related Question:
  <a href="https://stackoverflow.com/questions/12015299/jsoup-to-get-the-data-in-a-unorderedlist">jsoup to get the data in a unorderedlist</a>
  but that is having format issues.</p>
  
  <p>I tried as suggested but it is not working</p>
  
  <p>I tried:</p>
  
  <pre><code>Document doc = Jsoup.connect(url).get();             
  Element link = doc.select("a").last();
  String title1 = link.attr("title");
  </code></pre>
  
  <p>Issue is this is a big page with some information. in that there are many unordered lists..</p>