Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/myfilecontents7-java/
- Write a program named MyFileContents7 that reads a text file and accomplishes the following tasks:
- Count the number of lines in the file
- Count the number of alphabetic words in the file
- Count the number of integer values in the file
- Count the number of double values in the file
- Count the number of sentences in the file. Assume that a sentence ends with a period and a space unless it is at the end of the paragraph.
- Count the number of paragraphs. Assume that paragraphs are separated by an empty line.
- Display the shortest and longest alphabetic words.
- Download: http://solutionzip.com/downloads/myfilecontents7-java/
Advertisement
Add Comment
Please, Sign In to add comment