public static boolean startsWithChar(String s,char c){
  if (s.length() == 0) {
    return false;
  }
  return s.charAt(0) == c;
}

public static boolean startsWithChar ( String s , char c ) { if ( s . length ( ) == 0 ) { return false ; } return s . charAt ( 0 ) == c ; }
returns if string starts with given character .
