网易云音乐的接口:http://music.163.com/api/search/pc
参数 查询内容:s
String jsonStr = "千之缘";
//定义查询的内容
try {
String str = URLEncoder.encode(jsonStr, "utf-8").replaceAll("\\+", "");
// 转换成encode
URL url = new URL("http://music.163.com/api/search/pc?s=" + str + "&type=1");
//拼接url
HttpURLConnection httpCon = (HttpURLConnection