*
The moose likes Beginning Java and the fly likes Text File Sorting and counting words from the file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Text File Sorting and counting words from the file" Watch "Text File Sorting and counting words from the file" New topic
Author

Text File Sorting and counting words from the file

Umme Salma
Greenhorn

Joined: Apr 29, 2002
Posts: 2
hi all,
I am in a mistry with the following problem.
Please help me to solve this.
Problem is:
A text file contains text written in English.All the words appear in lower case characters and the only punctuation used is commas,full stops and spaces. As an output, your java program is expected to list all the words in alphabetical order followed by their frequency of use as shown below. You are required to use an output dialog box and JTextArea to display your output as shown below:
look 52
may 11
module 3
workplace 7
It is assumed that each line will contain an integral number of words and the number of words in the text does not exceed 12000.
I will appreciate any kind of co-operation.
Umme Salma
:roll:
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi,
Try the code specified in the URL...
http://www.freejavahelp.com/forums/sourcecode/messages/10231.shtml

Hope it Helps,

Mahesh
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
1. This sounds like homework to me. So please ask specific questions but don't just ask how to do it.
2. This has nothing to do with servlets so I am moving this to the beginner forum.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Originally posted by Umme Salma:
A text file contains text written in English. All the words appear in lower case characters and the only punctuation used is commas,full stops and spaces. As an output, your java program is expected to list all the words in alphabetical order followed by their frequency of use as shown below. You are required to use an output dialog box and JTextArea to display your output as shown below:

So what part of this assignment don't you understand?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text File Sorting and counting words from the file
 
Similar Threads
output raw HTML
Which class is suitable ?
Analazing a Paragraph
Dont know what is this but its a programming Activity ..
Text File Sorting and counting words from the file