Java String Starts Wtih startsWith(String str, String prefix)

Here you can find the source of startsWith(String str, String prefix)

Description

starts With

License

Open Source License

Declaration

protected static boolean startsWith(String str, String prefix) 

Method Source Code

//package com.java2s;

public class Main {
    protected static boolean startsWith(String str, String prefix) {
        return str != null && str.startsWith(prefix);
    }/*from w  w  w .  j  a  va2 s .co  m*/
}

Related

  1. startsWith(String source, String target, boolean caseSensitive)
  2. startsWith(String str, char c)
  3. startsWith(String str, char prefix)
  4. startsWith(String str, char prefix)
  5. startsWith(String str, String mark, int paramInt)
  6. startsWith(String str, String prefix)
  7. startsWith(String str, String prefix)
  8. StartsWith(String str, String prefix)
  9. startsWith(String str, String prefix, boolean ignoreCase)