We've already done this in the previous problems, and so we will just provide you with a quick remainder, as follows:
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://reqres.in/api/users/2"))
.build();
HttpResponse<String> response
= client.send(request, HttpResponse.BodyHandlers.ofString());