Java URL from makeURL(String[] URLStrings)

Here you can find the source of makeURL(String[] URLStrings)

Description

make URL

License

Open Source License

Declaration

private static URL makeURL(String[] URLStrings) 

Method Source Code

//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;
    }
}

Related

  1. makeURL(String title, String urlString)
  2. makeUrl(String url)
  3. makeUrl(String url)
  4. makeURL(String url)
  5. makeURL(String urlstr)
  6. newURL(CharSequence urlString)
  7. newUrl(String href)
  8. newURL(String location)
  9. newURL(String url)