I have
string like
String s="171734---------printer-head.-----No";
i want to break this string into words separeted
with ---
Means i want output as following
word1=171734
word2=---------
word3=printer-head.
word4=-----
word5=No
How could it possible ,i know with StringTokenizer
it is possible but i am not able to get it.
Please help me out.
Any help is appreceated
Thanks in advance