title: Jsoup Java For Loops and Elements
body: <p>I'm learning jsoup for use in java.  First of all, I'm not really understanding what the difference is between jsoup "Elements" and jsoup "Element" and when to use each.  Here's an example of what I'm trying to do.  Using this url <a href="http://en.wikipedia.org/wiki/List_of_bow_tie_wearers#Architects" rel="nofollow">http://en.wikipedia.org/wiki/List_of_bow_tie_wearers#Architects</a> I want to parse the text names under the category "Architects". I've tried this: </p>
  
  <pre><code>Document doc = null;
      try {
          doc = Jsoup.connect("http://en.wikipedia.org/wiki/List_of_bow_tie_wearers").get();
      } catch (IOException e) {
  
      }
      Elements basics = doc.getElementsByClass("mw-redirect");
  
      String text = basics.text();
  
      System.out.println(text);
  
  }
  </code></pre>
  
  <p>Here is the output: </p>
  
  <pre><code>run:
  Franklin Roosevelt Arthur Schlesinger, Jr. Reagan administration University of Colorado at Boulder Eric R. Kandel Eugene H. Spafford Arthur Schlesinger, Jr. middle finger John Daly Sir Robin Day Today show Tom Oliphant Today show Harry Smith TV chef Panic! At The Disco Watergate Watergate Hillary Clinton Donald M. Payne, Jr. Franklin Roosevelt Baldwin–Wallace College Howard Phillips Twilight Sparkle Gil Chesterton Bertram Cooper Richard Gilmore Dr. Donald "Ducky" Mallard, M.D., M.E. Medical Examiner Brother Mouzone hitman Buckaroo Banzai Conan Edogawa Jack Point Waylon Smithers Franklin Roosevelt NFL Chronicle of Higher Education Evening Standard
  </code></pre>
  
  <p>I'm really just trying to learn the basics of traversing a HTML document but I'm having trouble with the jsoup cookbook as it is confusing for a beginner.  Any help is appreciated.</p>