Here you can find the source of startsWithCharacter(String str, char stringStart)
Parameter | Description |
---|---|
current | a parameter |
stringStart | a parameter |
public static boolean startsWithCharacter(String str, char stringStart)
//package com.java2s; //License from project: Apache License public class Main { /**/* w w w. j a va 2 s .com*/ * Checks if the string str starts with the given character * @param current * @param stringStart * @return */ public static boolean startsWithCharacter(String str, char stringStart) { return str.length() > 0 && str.charAt(0) == stringStart; } }