Mega Code Archive

 
Categories / Java Tutorial / Development
 

Output URL

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.rntsoft.com");     System.out.printf("BOOLEAN:   %B\n", u);       } } BOOLEAN: TRUE