title: jsoup extracting data from a table
body: <p>I have an html file and I need to extract department names from it using jsoup.</p>
  
  <pre><code>Document doc = Jsoup.connect("http://directory.binghamton.edu/directory/directory.deptlist").get();
  System.out.println(doc);
  Elements departments = doc.select("deptlist");
  
  for (Element department : departments) {
      System.out.println(department.text());
  }
  </code></pre>
  
  <p>I have done smthing like that but it doesnt work.</p>
  
  <p>view-source:http://directory.binghamton.edu/directory/directory.deptlist</p>
  
  <p>Thank you.</p>