public class MinKlass { public static void main(String args[]) { ArrayList urls = new ArrayList(); urls.add("http://www.google.com"); Url u = new Url(urls, "tmp", "tmp", 0, "tmp", 0); ArrayList stuff_goes_here = u.hämtaFrånKälla(); for(String content : stuff_goes_here) { System.out.println(content); } } }