Here you can find the source of newURL(String url_name)
public static URL newURL(String url_name)
//package com.java2s; import java.net.MalformedURLException; import java.net.URL; public class Main { public static URL newURL(String url_name) { try {/* www . j a va 2 s . c o m*/ return new URL(url_name); } catch (MalformedURLException e) { throw new RuntimeException("Malformed URL " + url_name, e); } } }