Here you can find the source of makeURL(String[] URLStrings)
private static URL makeURL(String[] URLStrings)
//package com.java2s; //License from project: Open Source License import java.net.MalformedURLException; import java.net.URL; public class Main { private static URL makeURL(String[] URLStrings) { for (String url : URLStrings) { try { return new URL(url); } catch (MalformedURLException e) { // Try next url. }//from www.j a v a 2 s . com } return null; } }