![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2005
Posts: 1
Rep Power: 0
![]() |
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?
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4
![]() |
We don't do homeworks here...
Give some effort, show the code you help and we will help you with any problems |
|
|
|
|
|
#3 |
|
Professional Programmer
|
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 ! |
|
|
|
|
|
#4 |
|
Expert Programmer
|
look at the original code for the string tokenizer and use that as an example.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|