Created
January 16, 2026 12:13
-
-
Save NikolayGorshkov/bf8f59f3a5424d7a8644062b7180e470 to your computer and use it in GitHub Desktop.
article/loom/listing_1.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String request_1() throws Exception { | |
| String resultNum = requestService("http://localhost:8080/1"); | |
| return request_2(resultNum); | |
| } | |
| String request_2(String num) throws Exception { | |
| String resultNum = requestService("http://localhost:8080/" + num); | |
| return request_3(resultNum); | |
| } | |
| String request_3(String num) throws Exception { | |
| return requestService("http://localhost:8080/" + num); | |
| } | |
| void main() throws Exception { | |
| try { | |
| String response = request_1(); | |
| IO.println(response); | |
| } catch (Exception e) { | |
| log.log(SEVERE, "Error calling service", e); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment