Java实现手机号码归属地判别
时间:2015-07-28 22:31:19
收藏:0
阅读:520
import java.io.*; import java.net.*; public class PhoneNumber { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub URL yahoo = new URL("https://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=15850781443"); BufferedReader in = new BufferedReader( new InputStreamReader( yahoo.openStream())); String inputLine; while ((inputLine = in.readLine()) != null) System.out.println(inputLine); in.close(); } }
原文:http://www.cnblogs.com/villa/p/4684227.html
评论(0)