Wahey! startsWith()
returns true
or false
, based on whether or not the specified String
-type value is a so-called prefix of the string.
Psst: Grace Hopper developed the first compiler for a computer programming language.
Whoops! Wouldn't that check if both strings are identical. We want to check if one string is at the beginning of the other.