Here you can find the source of startsWith(String value, String startsWith)
value
starts with startsWith
.
Parameter | Description |
---|---|
value | a parameter |
startsWith | a parameter |
value
starts with startsWith
, otherwise false. If any of arguments is null returns false
public static boolean startsWith(String value, String startsWith)
//package com.java2s; //License from project: Apache License public class Main { /**/* w w w .j a v a 2 s. c om*/ * Checks if <code>value</code> starts with <code>startsWith</code>. * @param value * @param startsWith * @return true if <code>value</code> starts with <code>startsWith</code>, otherwise false. If any of arguments is null returns false */ public static boolean startsWith(String value, String startsWith) { if ((value == null) || (startsWith == null)) { return false; } return value.startsWith(startsWith); } }