aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprithugoswami <prithugoswami524@gmail.com>2019-03-29 19:20:11 +0530
committerprithugoswami <prithugoswami524@gmail.com>2019-03-29 19:20:11 +0530
commitfbd9628246c644fe4ba803145431986dbf3b5ffb (patch)
tree3efa9a4167f2cc7d9bdcd526722f820fd51f7dd2
parent7e493379e53d095a6a02b58036b6c583a8bda993 (diff)
downloadtmdb-desktop-client-fbd9628246c644fe4ba803145431986dbf3b5ffb.tar.gz
tmdb-desktop-client-fbd9628246c644fe4ba803145431986dbf3b5ffb.zip
some test files and lib folder
-rw-r--r--lib/json-20180813.jarbin0 -> 64597 bytes
-rw-r--r--test.java28
2 files changed, 28 insertions, 0 deletions
diff --git a/lib/json-20180813.jar b/lib/json-20180813.jar
new file mode 100644
index 0000000..592f08c
--- /dev/null
+++ b/lib/json-20180813.jar
Binary files differ
diff --git a/test.java b/test.java
new file mode 100644
index 0000000..ef883b0
--- /dev/null
+++ b/test.java
@@ -0,0 +1,28 @@
+import java.net.URL;
+
+import java.net.MalformedURLException;
+import java.io.IOException;
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+import java.io.InputStream;
+import org.json.*;
+
+
+class test{
+ public static void main(String args[]){
+ try{
+ URL url = new URL("https://googledictionaryapi.eu-gb.mybluemix.net/?define=farrago&lang=en");
+ InputStream res = (InputStream)url.getContent();
+ JSONArray ja = new JSONArray(new JSONTokener(res));
+ System.out.println(ja.toString(4));
+
+ }
+ catch(MalformedURLException e){
+ System.out.println(e);
+ }
+ catch(IOException e){
+ System.out.println(e);
+ }
+
+ }
+}