Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-07-2006, 07:36 AM   #1 (permalink)
 
Newb Techie

Join Date: Nov 2005

Posts: 42

Hamuth

Unhappy java string tokenizer

hi

Does any one have a coding example that resolve problems like:

1. a text file containing 5 paprgraphs not more than 100 words, the name of text file is "abstract.text"

2. write java code to determine how many of the paragraphs are below 90 words?

3. what is the average word length in all abstracts?

4. given a word, determine how many times this word is used in all the paragraphs.

this program should be extended further(inheritance)

to

given a paragraph e.g paragraph3, the program should list all the sentenses which have more than 10 words. these sentenes should appear one line and in aplhabetical order.


Does anyone of u have a java coding that resemble the requirements given above?

thank u.
__________________
Venom Digital
Hamuth is offline  
Old 10-07-2006, 06:35 PM   #2 (permalink)
 
True Techie

Join Date: May 2006

Posts: 150

fjf314 is on a distinguished road

Send a message via AIM to fjf314
Default

I don't think you're going to find an example with that many specifics in it. From what you've given, it seems pretty straightforward. The functions of the StringTokenizer class can handle a lot of those with ease. You can check them all out here:

http://java.sun.com/j2se/1.5.0/docs/api/

If you have any questions, you would be better off posting exactly what you're confused about rather than just typing out the whole sheet your professor gave you. I'm not trying to be rude, but between this thread and your "Dynamic Barchart" thread, it basically seems like you want people to give you examples that do exactly what you're supposed to be coding and I don't think it's likely anyone is going to do that. If you need help with something, feel free to ask questions, but don't expect to get your whole assignment just handed to you.
__________________
There are 10 kinds of people in the world, those who understand binary and those who don\'t.
fjf314 is offline  
Old 10-08-2006, 12:59 AM   #3 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

Quote:
Does anyone of u have a java coding that resemble the requirements given above?
Do your own homework.
jaeusm is offline  
Old 10-08-2006, 01:39 AM   #4 (permalink)
 
Newb Techie

Join Date: Nov 2005

Posts: 42

Hamuth

Talking re:String Token

Ok i'll work it out.

I knew it wasnt good to ask like that but ive just tried!!

For anyone who read my 2 posting i'am sorry please!!.

i'll be more problem oriented next time!!

thanks
wassim
__________________
Venom Digital
Hamuth is offline  
 
Closed Thread

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
Trackbacks are On
Pingbacks are On
Refbacks are On