From 18d37277b95cc38012410e875afed97cc563c68a Mon Sep 17 00:00:00 2001 From: Tal Date: Tue, 6 Oct 2020 13:52:41 -0500 Subject: [PATCH] Add code --- main.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main.java diff --git a/main.java b/main.java new file mode 100644 index 0000000..8b0502b --- /dev/null +++ b/main.java @@ -0,0 +1,9 @@ +public class Main { + + public static main(String[] args) { + URL url = new URL("http://joinis.is"); + String response = new BufferedReader(new InputStreamReader(url.openStream())).readLine(); + System.out.println(response); + } + +}