title: How to read a text from a web page with Java?
body: <p>I want to read the text from a web page. I don't want to get the web page's HTML code. I found this code:</p>
  
  <pre><code>    try {
          // Create a URL for the desired page
          URL url = new URL("http://www.uefa.com/uefa/aboutuefa/organisation/congress/news/newsid=1772321.html#uefa+moving+with+tide+history");       
  
          // Read all the text returned by the server
          BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
          String str;
          while ((str = in.readLine()) != null) {
              str = in.readLine().toString();
              System.out.println(str);
              // str is one line of text; readLine() strips the newline character(s)
          }
          in.close();
      } catch (MalformedURLException e) {
      } catch (IOException e) {
      }
  </code></pre>
  
  <p>but this code gives me the HTML code of the web page. I want to get the whole text inside this page. How can I do this with Java?</p>