please explain and post the code you are having problems with.

What is the reason for not using split()? The String class has methods that can be used to do the same thing as split.