Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 20th, 2005, 2:12 AM   #1
beedubaya
Newbie
 
Join Date: Nov 2005
Posts: 1
Rep Power: 0 beedubaya is on a distinguished road
Urgent StringTokenizer help!

My Advanced Programming teacher came up with a new rule that I can no longer use the provided "StringTokenizer" method, but have to write my own class file that tokenizes strings. I have no idea how I would go about doing that and making it work. Does anybody have anything that could help me out?
beedubaya is offline   Reply With Quote
Old Nov 20th, 2005, 4:47 AM   #2
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
We don't do homeworks here...
Give some effort, show the code you help and we will help you with any problems
ivan is offline   Reply With Quote
Old Nov 20th, 2005, 6:13 AM   #3
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 383
Rep Power: 4 xavier is on a distinguished road
Send a message via Yahoo to xavier
Well , what you could do is : Split a string into characters , then search in that char array for ' ' , or ',' , or ';' ... and the characters upto then put them in a separate string ... maybe a string array , for all the words . Something like that.
__________________
Don't take life too seriously, it's not permanent !
xavier is offline   Reply With Quote
Old Nov 20th, 2005, 6:02 PM   #4
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 582
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
look at the original code for the string tokenizer and use that as an example.
crawforddavid2006 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:30 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC