#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    How do you find a word inside a string without using the string class methods?


    Can anybody please help me with this? I know it's pretty finding a word using string methods but I want to learn a different approach. I would really appreciate it if someone helps, I really really want to learn how.
  2. #2
  3. Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    Superior, CO, USA
    Posts
    2,418
    Rep Power
    1713
    Do you know how to walk through the String and look at each character (hint: a combination of a "for" loop, charAt() and length() will be needed)?

    Once you have that, what would you do?

IMN logo majestic logo threadwatch logo seochat tools logo