Need help with string tokenizer
I have an Assignment due and I am stuck with one concept that I am not able to push through JAVA, hopefully some knowledgeable brave soul can dig me out of this one.
DESCRIPTION OF THE PROGRAM.
1) take characters from a file
i.e. (ABD+*-AD) or (BGT+*ECXS) or (MNBHUR*/)
This is dealing with RPN( Reverse Polish Notation) just to clarify so nobody thinks that I am putting garbage up here.
So this has to mainly deal with managing individual characters.
2) And the output should be in some order according to the algorithm that will be implemented, ( I am not providing that because that is not concerning with the issue that I am dealing with).
3) Professor said to use STRING TOKENIZER, as I am using that class I can not get control over each character, the only way a TOkenizer separates a string is by using and specifying delimiters. In my case there are no delimiters. Its all just one long or short consecutive characters.
How can I walk through each character in a string (as shown above) using a tokenizer without any delimiters. PLEASE HELP
4) Last thing, IS there a CHAR TOKENIZER?, I didnít find one in JAVA API.