Google+
Java is the future !: startHi
Java is the future !
Pages
Home
Java interview questions
Contact me
JavaRAQ
Video Tutorials
Monday, October 11, 2010
startHi
You've given a string, return true if the string starts with "hi" and false otherwise.
startHi("hi chankey") → true
startHi("hi") → true
startHi("heya hi") → false
Solution :
1 comment:
Anonymous
March 20, 2012 at 11:24 PM
or you could use str.startsWith("hi")
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
or you could use str.startsWith("hi")
ReplyDelete