manish sahni wrote:How should i go about it ?
Well, the first thing to do is
don't write any code until you understand the problem.
Second: This is NOT a
Java problem, it is a string searching, or character matching, problem.
Third: Define the rules
precisely: What if, instead of "
masinh", the user supplies "
mmasiiinh". What does that mean?
Fourth: (a tip; and only for when you have the rules down
exactly) Given a string and user input, how will you know when you DON'T have match?
HIH
Winston