摘要:
import java.io.BufferedInputStream;import java.io.InputStreamReader;import java.net.URL;import java.sql.Date;public class StockInfo { public static final String SOURCE = "http://hq.sinajs.cn/list="; // 股票名称 public String stock_name; // 今日开盘价 public double begin_price; // 昨日收盘价 p... 阅读全文
摘要:
private static String unknow2chines(String str){ String result = ""; int start = 0, end = 0; while(start < str.length()) { start = str.indexOf("&#", end); if(start >= 0){ result += str.substring(end, start); start = start + 2; end = str.indexOf(";", start); if 阅读全文