title: Java - return 2 values (String array)
body: <p>I have this java code and i want to return 2 values and then use them in main() or in other functions. Some help please. TX :</p>
  
  <pre><code>import java.net.*;
  import java.io.*;
  import java.io.File;
  import org.apache.commons.io.FileUtils;
  import org.apache.commons.lang.StringUtils;
  
  public class URLReader {
  
  public  String[] functie(String x) throws Exception
  {
      URL oracle = new URL(x);
      BufferedReader in = new BufferedReader(new InputStreamReader(oracle.openStream()));
      String inputLine=null;
      StringBuffer theText = new StringBuffer();
      while ((inputLine = in.readLine()) != null)
              theText.append(inputLine+"\n");
  
      String html = theText.toString();
      in.close();
  
      String[] tds = StringUtils.substringsBetween(html, "&lt;tr&gt;", "&lt;/tr&gt;");
  
      String[] tds2 = StringUtils.substringsBetween(tds[1], "href=\"/module/gallery", "\"&gt;&lt;img");
      String[] tds3 = StringUtils.substringsBetween(tds[1], "src='/redx_tools/mb_image.php", "' border='1'");
  
      return ???
  
  }
  
  public static void main(String[] args) throws Exception {
      String x = new String("http://www.wippro.at/module/gallery/index.php?limitstart=0&amp;picno=0&amp;gallery_key=59");
  
      URLReader s = new URLReader();
      for (String st : s.functie(x))
      {
          System.out.println(st);
      }
  
  }
  </code></pre>
  
  <p>}    </p>