import java.io.*;
import java.net.*;
import java.util.stream.*;
import java.util.concurrent.ThreadLocalRandom;

public class Test {
public void run() {
while (true) {
IntStream.rangeClosed(0, 24).boxed().parallel().forEach(x -> {
try {
Thread.sleep(ThreadLocalRandom.current().nextInt(50));
URL google = new URL("https://www.google.com/");
URLConnection conn = google.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
}
in.close();
} catch (IOException e) {
System.out.println(e);
} catch (InterruptedException e) {
System.out.println(e);
}
});
}
}

public void fetchGoogle() {
}

public static void main(String[] args) {
Test test = new Test();
test.run();
}
} 