title: Jsoup -- iterate over multiple elements simultaneously?
body: <p>I am attempting to convert an html page with entries that have multiple types of details (e.g. name, phone number, and address), into a spreadsheet. I am able to to isolate each of these details as Elements, but I cannot seem to find a way to iterate over multiple Elements at once to print names and phone numbers next to one another rather than having all the names printed and then all of the phone numbers printed. </p>
  
  <pre><code>Jsoup.connect(page).timeout(999999);
          Document doc = Jsoup.connect(page).get();
          String title = doc.title();
          System.out.println(title);
  
          Elements names = doc.select("li a");
          Elements ratings = doc.select("li img");
  
          for (Element name:names){
              if (name.attr("href").startsWith("/biz/")){
              System.out.println(name.text());
              }
  
  
              for (Element rating:ratings){
  
                  System.out.println(rating.attr("alt"));
  
          }
  </code></pre>