Hi,
First you can use StringTokenizer with colon as delimitation.
You get:
processor
intel pentium
Then use StringTokenizer again with whitespace as delimitation.
You will get
processor
intel
pentium
It's complex, isn't it ?
Or you can do it with your own code, without using StringTokenizer
Cheers,
Phuc Bui