public static Boolean isUrl(String url) {
    try {
        new URL(url);
        return true;
    } catch (MalformedURLException e) {
        return false;
    }
}

Comments are closed.

Post Navigation