Java tutorial
import java.net.MalformedURLException; import java.net.URL; public class MainClass { public static void main(String[] args) throws MalformedURLException { URL u = new URL("http://www.java2s.com"); System.out.printf("BOOLEAN: %B\n", u); } }