JAVA File handling. ( Urgent Response Appreciated)
Hi I'm pretty new to Java. I would appreciate if any one could write programme for me for the below scenario:
Write aJava program which accepts the name of a text file, reads in that file, and prints out the following information about the file:
1. a list of all letters (A through Z) in that file, disregarding case (e.g. count 揳?and 揂?as two occurrences of the letter A), ordered with the most frequently used letter first and the least frequently used letter last, along with the number of times each letter was used,
2. an alphabetized list of all distinct words in that file with the number of times each word was used,
3. the average number of letters in a word, and
4. the average number of words in a sentence.
Use the following example paragraph to set up your test input text file:
Any experienced programmer engaged in writing programs for use by others knows that, once his program is working correctly, good output is a must. Few people really care how much time and trouble a programmer has spent in designing and debugging a program. Most people see only the results. Often, by the time a programmer has finished tackling a difficult problem, any output may look great. The programmer knows what it means and how to interpret it. However, the same cannot be said for others, or even for the programmer himself six months hence.
> what makes u laugh..Iam still in training mode and
> would like to see the ideas of others. I tried it
> literally for about 4 hour and did not got accurate
> answer.If you know the answer please post it for me.
Better yet, post what you tried, and we'll be happy to point out where you went wrong and get you started in the right direction toward correcting your error. This isn't the correct forum to have your assignment written for you.
~
> I cannot provide the programm becuase I
> deleted my whole programe as I was not getting
> solution.
Then start again. Don't try to write the whole thing at once. Start with the task of breaking the text up into individual words. Just write a single method that does only that. When you've finished that, and you've tested it, and it works, post your results here.
> Please provide me with solution. I'm need of it .
My car needs washing. Please wash my car.
~
> Hi that's not assignment question.
Please do not lie. It is very not good. It is painfully obvious that that is an assignment question.
> I tried to frame
> my problem as questions so that its easy to
> understand. I cannot provide the programm becuase I
> deleted my whole programe
This is another lie. That makes you zero for two thus far.
> solution. Please provide me with solution. I'm need
> of it .
Stop begging like a dog.
Start learning.
Start here http://java.sun.com/docs/books/tutorial/java/index.html
and don't come back until you have some basic code written.