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