import java.util.ArrayList; import java.io.*; import java.net.URL; public class getWebResourceArray { @SuppressWarnings("deprecation") public ArrayList getWebResourceFileArray() throws Exception { // URL cisackson = new URL("http://cisackson.cgilinks.com/COTFCatalog/jCombobox-composersLN.txt"); //URL cisackson = new URL("http://myjava.cgilinks.com/"); //URL cisackson = new URL("https://www.rhododendron.org/taxonomictree.asp"); URL cisackson = new URL("http://www.rhododendron.org/descriptionS_taxon.asp?ID=39"); BufferedReader in = new BufferedReader( new InputStreamReader(cisackson.openStream())); ArrayList arrayList = new ArrayList(); String inputLine; while ((inputLine = in.readLine()) != null) { System.out.println(inputLine); arrayList.add(inputLine); } in.close(); return arrayList; } }