title: Type mismatch: cannot convert from StringBuilder to String
body: <p>This method returns the source of the given URL.    </p>
  
  <pre><code>private static String getUrlSource(String url) {
      try {
          URL localUrl = null;
          localUrl = new URL(url);
          URLConnection conn = localUrl.openConnection();
          BufferedReader reader = new BufferedReader(
              new InputStreamReader(conn.getInputStream()));
          String line = "";
          String html;
          StringBuilder ma = new StringBuilder();
          while ((line = reader.readLine()) != null) {
              ma.append(line);
          }
          return ma;
      } catch (Exception e) {
          Log.e("ERR",e.getMessage());
      }
  }
  </code></pre>
  
  <p>It gives me this error:</p>
  
  <pre><code>Type mismatch: cannot convert from StringBuilder to String
  </code></pre>
  
  <p>And two choices:</p>
  
  <ol>
  <li><code>Change the return type to StringBuilder.</code>
  But I want it to return a String.</li>
  <li><code>Change type of ma to String.</code>
  After changing a String has no append() method.</li>
  </ol>