public static boolean startsWith(String s1,String s2){
  if (s1 == null || s2 == null) {
    return false;
  }
  return s1.startsWith(s2);
}

public static boolean startsWith ( String s1 , String s2 ) { if ( s1 == null || s2 == null ) { return false ; } return s1 . startsWith ( s2 ) ; }
check if one string starts with another string .
