Java URL library for grabbing lines on a website
<p>I want to be able to grab <code>N</code> lines (HTML text content that start on new lines) on a specific <code>URL</code> e.g. <code>www.sitename.com</code> and store them as <code>strings</code> in an array.</p>

<p>something like</p>

<pre><code>public void grabLines(){

//create instance of class from imported library

//pass sitename into it

//from the instance, call a method for grabbing the lines on the site and pass in "N" as a parameter

//the  method returns an array/list of N Strings that I can access later

}
</code></pre>

<p>Is there a native Java library I can import to do this? Does it allow me do what I want easily?</p>

<p>Thanks</p>
