java - Result from website to string -



java - Result from website to string -

how can convert result website (eg. https://blockchain.info/de/q/24hrprice) string / integer? have read source code website?

i'm developing android studio.

bufferedreader in = null; seek { string urlstr = "https://blockchain.info/de/q/24hrprice"; url url = new url(urlstr); urlconnection con = url.openconnection(); in = new bufferedreader(new inputstreamreader(con.getinputstream(), "utf-8")); string input; while ((input = in.readline()) != null) { system.out.println(input); //you can parse input integer or double } } grab (malformedurlexception ex) { system.err.println(ex); } grab (ioexception ex) { system.err.println(ex); } { seek { in.close(); } grab (exception ex) { system.err.println(ex); } }

java android api website

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -