Here you can find the source of startsWithChar(final String s, final char c)
public static boolean startsWithChar(final String s, final char c)
//package com.java2s; public class Main { public static boolean startsWithChar(final String s, final char c) { if (s == null || s.length() == 0) { return false; }/*w ww . jav a 2 s. com*/ return s.charAt(0) == c; } }