Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

String Tokenizer Problem?

807589Jan 8 2009 — edited Jan 12 2009
Hello. I am doing a school assignment and I need a bit of help. I have to create a code that will take a text file, import it, tokenize it, and modify the strings that it recieves. I understand that bit, but I'm having trouble tokenizing the strings. I know the token method is obsolete, but this is the method the teacher requested. Following is the bit of code I'm having trouble with:
	//Seperating the tokens
	wordOne=String.parseStr(strTkn.nextToken());	
	suffixOne=String.parseStr(strTkn.nextToken());	
	wordTwo=String.parseStr(strTkn.nextToken());	
	suffixTwo=String.parseStr(strTkn.nextToken());	
	wordThree=String.parseStr(strTkn.nextToken());
	suffixThree=String.parseStr(strTkn.nextToken());
	}
The error I am getting is:
cannot find symbol method parseStr(java.lang.String)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2009
Added on Jan 8 2009
32 comments
1,455 views