Hi,
I am going to store a string in string tokenizer object. But i am not getting the output what i think.

For example :

StringTokenizer st = new StringTokenizer("I born on 21.02.1995. So, now my age is 15.", ".");

I will get output as :

I born on 21
02
1995
So, now my age is 15.

But i want output as :

I born on 21.02.1995.
So, now my age is 15.

please post your reply at your thread that already started.. ...

commented: I hope this will cool you down +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.