Java String Starts Wtih startsWithChar(final String s, final char c)

Here you can find the source of startsWithChar(final String s, final char c)

Description

starts With Char

Declaration

public static boolean startsWithChar(final String s, final char c) 

Method Source Code

//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;
    }
}

Related

  1. startsWithAnyOfThose(final String in, final String[] prefixes)
  2. startsWithAt(String text, String toFind, int offset)
  3. startsWithCamelCase(String string, String prefix)
  4. startsWithCapLettersEndsWithDigits(String text)
  5. startsWithChar(CharSequence s, char prefix)
  6. startsWithChar(String s, char c)
  7. startsWithChar(String string, char prefix)
  8. startsWithChar(String string, int character)
  9. startsWithCharacter(String str, char stringStart)