Okay? For the first one a simple substr in a loop. In the second one a simple substr in a loop combined with charAt to determine the index.
Using those hints, give it a try and then post your code with a specific question.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494