Hi all,
I'm new to
java and have been practicing coding on CodingBat (which I feel is an excellent resource for a beginner).
There is a
string based program which says: Given a string, return true if the string starts with "hi" and false otherwise.
I wrote the following code for it:
But during runtime, it doesn't return true for the following inputs:
startHi("hi there")
startHi("hi ho")
Where am I going wrong?