|
-
Dec 18th, 2001, 02:24 PM
#1
Thread Starter
Lively Member
StringTokenizer
I have this code
st = new StringTokenizer(line, " \n\t\r\'\",;()-.");
while(st.hasMoreTokens())
{
try
{
temp= st.nextToken();;
word++;
System.out.println(temp);
if (temp.length() >= 7)
{
l_word++;
System.out.println("lang "+temp+ ":"+l_word);
}
are there any way to check if the delimiters are - to example .
and then count++ or have i to make a new loop
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|