all repos — tmdb-desktop-client @ fbd9628246c644fe4ba803145431986dbf3b5ffb

A simple tmdb desktop client written in Java

some test files and lib folder
prithugoswami prithugoswami524@gmail.com
Fri, 29 Mar 2019 19:20:11 +0530
commit

fbd9628246c644fe4ba803145431986dbf3b5ffb

parent

7e493379e53d095a6a02b58036b6c583a8bda993

2 files changed, 28 insertions(+), 0 deletions(-)

jump to
A 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); + } + + } +}