all repos — tmdb-desktop-client @ a7a3174fdfdf6e9ae41158375a2844a05a6207c7

A simple tmdb desktop client written in Java

update test.java
prithugoswami prithugoswami524@gmail.com
Fri, 29 Mar 2019 19:39:16 +0530
commit

a7a3174fdfdf6e9ae41158375a2844a05a6207c7

parent

fbd9628246c644fe4ba803145431986dbf3b5ffb

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M test.javatest.java

@@ -11,7 +11,11 @@

class test{ public static void main(String args[]){ try{ - URL url = new URL("https://googledictionaryapi.eu-gb.mybluemix.net/?define=farrago&lang=en"); + String word = "farrago"; + String req_url = ( + "https://googledictionaryapi.eu-gb.mybluemix.net/?define=%s&lang=en" + ); + URL url = new URL(String.format(req_url, word)); InputStream res = (InputStream)url.getContent(); JSONArray ja = new JSONArray(new JSONTokener(res)); System.out.println(ja.toString(4));