Public? Static electricity Invalid? main(String[]? args)? {
Website? ur? =? null
Try it? {
//Sohu Stock Market Historical Interface
//ur? =? New? Website ("_ 300228 & ampstart = 20130930 &; end = 20 13 123 1 & amp; stat = 1 & amp; Order = D & cycle = d & callback = historysearchhandler & amp = jsonp ");
//Sina Stock Market Historical Interface
ur? =? New? URL("/stock/flash _ HQ/Kline _ data . PHP? & amprand = random( 10000)amp; Symbol = sh600000 & end _ date = 20150809 & begin _ date = 20000 10 1。 type = plain ");
HttpURLConnection? uc? =? (HttpURLConnection)? ur . open connection();
BufferedReader? Readers? =? New? BufferedReader (new? InputStreamReader(ur . openstream(),“GBK”);
String? Line;
And ((ok? =? reader.readLine())? ! =? null){
system . out . println(line);
}
}? Catch? (exception? e)? {
//? Todo? Automatically generated? Catch? block
e . printstacktrace();
}
}
}