public String Busca(int busca) throws IOException, InterruptedException { String endereco = "http://viacep.com.br/ws/" + busca + "/json/"; Gson gson = new Gson();
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(endereco))
.build();
HttpResponse<String> response = client
.send(request, HttpResponse.BodyHandlers.ofString());
String json = response.body();
System.out.println(json);
System.out.println(endereco);