I've a string "abc,def---ghi-jkl-mno"
I want to tokenize it with "---" delimiter.
StringTokenizer st = new StringTokenizer("abc,def---ghi-jkl-mno","---");
Now the expected or required result is that there are two tokens i.e.
abc,def and ghi-jkl-mno
but the tokens are
Can anyone please tell me what is the rule?????
and How can I do what I want to do?