Here you can find the source of createURL(String str)
public static String createURL(String str)
//package com.java2s; //License from project: Open Source License import java.net.MalformedURLException; import java.net.URL; public class Main { public static String createURL(String str) { try {//from ww w. j av a 2 s. c o m new URL(str); return null; } catch (MalformedURLException var2) { return "http://" + str; } } }