Java Hash String hasHttp(String url)

Here you can find the source of hasHttp(String url)

Description

has Http

License

Open Source License

Declaration

public static boolean hasHttp(String url) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean hasHttp(String url) {
        return url.startsWith("http://") || url.startsWith("https://");
    }/* w w  w . jav  a  2s.c om*/
}

Related

  1. hasHtmlTag(String content)
  2. hasHTMLTag(String html)
  3. hasHTMLTag(String text)
  4. hashToHexString(byte[] hash)
  5. hashToString(byte hash[])