Java Array Start With startWith(String t, String[] prefix)

Here you can find the source of startWith(String t, String[] prefix)

Description

start With

License

Open Source License

Declaration

public static boolean startWith(String t, String[] prefix) 

Method Source Code

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

public class Main {
    public static boolean startWith(String t, String[] prefix) {
        for (String p : prefix) {
            if (t.startsWith(p)) {
                return true;
            }//  ww w  .  ja v  a  2  s  . co m
        }
        return false;
    }
}

Related

  1. arrayStartsWith(V[] pattern, V[] data)
  2. startWith(byte[] data, int start, byte[] find)
  3. startWith(byte[] startWith, byte[] bytes)
  4. startWith(char[] value, char c)
  5. startWith(final byte[] aBuffer, final byte[] aPrefix)