填空题
方法getURLConnection(String s)的功能是已知网络中的资源s,获得一个URLConnection对象并返回。
URLConnection getURLConnection(String s){
URL myURL=null;
try {myURL=new______;
} catch(MalformedURLException e){
System.out.println("有错的URL:"+s+e);
}
return myURL.______;
}
【参考答案】
URL(s)
openConnection()
点击查看答案
相关考题
