Android examples for java.lang:String Starts or Ends
String has Prefix via startsWith() method
import java.util.List; import java.util.Map; public class Main{ public static boolean hasPrefix(String str, String prefix) { return str != null && prefix != null && str.startsWith(prefix); }/* w w w . j a v a2 s. c o m*/ }