It gives me a white screen when I run this code and the cause of this white screen is the first line in the try block:
try {
result = task.execute("https://www.hollywoodreporter.com/lists/international-womens-day-2017-feminist-quotes-25-celebrities-983702").get();
String[] splitResult= result.split("</div><figcaption class");
Pattern p =Pattern.compile(" src=\" (.*?) \"/> ");
Matcher m= p.matcher(splitResult[1]);
while (m.find()) { clecbUrls.add(m.group(1)); }
p =Pattern.compile("content=\" (.*?) \"/> ");
m= p.matcher(splitResult[1]);
while (m.find()) { clecbNames.add(m.group(1)); }
Random random =new Random();
chosenCeleb=random.nextInt( clecbUrls.size());
}
catch (ExecutionException e) {
e.printStackTrace();
System.out.println("it crashed");
}
catch (InterruptedException e) {
e.printStackTrace();
System.out.println("crashed");
}