private boolean fun(String link)
try{
Url url = new Url(link);
if(url.getHost()!=null){
return true;
}else{
return false;
}
}catch(Exception e){
return false;
}
private boolean fun(String link)
try{
Url url = new Url(link);
if(url.getHost()!=null){
return true;
}else{
return false;
}
}catch(Exception e){
return false;
}
转载于:https://www.cnblogs.com/fishbone-lsy/p/4499032.html