Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isExternalURL(String str) {
if (str == null)
return false;
return str.indexOf("http://") == 0 || str.indexOf("https://") == 0 || str.indexOf("www.") == 0;
}
}