码迷,mamicode.com
首页 > 移动开发 > 详细

Java实现手机号码归属地判别

时间:2015-07-28 22:34:13      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:

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(); 
    }

}

 

Java实现手机号码归属地判别

标签:

原文地址:http://www.cnblogs.com/villa/p/4684227.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!