China Naming Network - Company naming - How to access the weather forecast interface remotely with java
How to access the weather forecast interface remotely with java
API URL URL = new URL("/data/"+city id+"。 Html ") to connect with the Central Meteorological Observatory; URL connection connection data = URL . open connection(); connection data . setconnecttimeout( 1000);