Big Java Late Objects
Big Java Late Objects
2nd Edition
ISBN: 9781119330455
Author: Horstmann
Publisher: WILEY
Question
Book Icon
Chapter 19, Problem 7PP
Program Plan Intro

To find all words with exactly one vowel

Program plan:

  • In the file Words.java”, import necessary packages, and create a class Words”,
    • Define a method “exactlyOneVowel()” to read all of the words in filename and returns a list of all words with exactly one vowel.
    • Define a method “onlyOneVowel()’ to see if a word has exactly one vowel.
    • Define a method “longestWord()” to return the longest word in the stream.
    • Define a method “wordCount()” to return the number of words of that length in the stream.
  • In the file WordsTester.java”, import the packages, and create a class “WordsTester”,
    • Define the method “main()”,
      • Create a list obtained using “exactlyOneVowel()”.
      • Print the required actual and expected outputs. They are,
        • Number of words.
        • Longest word.
        • Length of longest word.
        • Length of “2” count.
        • Length of “5” count.
        • Length of “7” count.
        • Length of “10” count.
        • Length of “11” count.
        • Length of “12” count.
        • Length of “13” count.
        • Length of “14” count.

Blurred answer

Chapter 19 Solutions

Big Java Late Objects

Ch. 19.3 - Prob. 11SCCh. 19.3 - Prob. 12SCCh. 19.3 - Prob. 13SCCh. 19.3 - Prob. 14SCCh. 19.3 - Prob. 15SCCh. 19.4 - Prob. 16SCCh. 19.4 - Prob. 17SCCh. 19.4 - Prob. 18SCCh. 19.4 - Prob. 19SCCh. 19.4 - Prob. 20SCCh. 19.5 - Prob. 21SCCh. 19.5 - Prob. 22SCCh. 19.5 - Prob. 23SCCh. 19.5 - Prob. 24SCCh. 19.5 - Prob. 25SCCh. 19.6 - Prob. 26SCCh. 19.6 - Prob. 27SCCh. 19.6 - Prob. 28SCCh. 19.6 - Prob. 29SCCh. 19.6 - Prob. 30SCCh. 19.7 - Prob. 31SCCh. 19.7 - Prob. 32SCCh. 19.7 - Prob. 33SCCh. 19.7 - Prob. 34SCCh. 19.7 - Prob. 35SCCh. 19.8 - Prob. 36SCCh. 19.8 - Prob. 37SCCh. 19.8 - Prob. 38SCCh. 19.8 - Prob. 39SCCh. 19.9 - Prob. 40SCCh. 19.9 - Prob. 41SCCh. 19.9 - Prob. 42SCCh. 19.9 - Prob. 43SCCh. 19.9 - Prob. 44SCCh. 19.10 - Prob. 45SCCh. 19.10 - Prob. 46SCCh. 19.10 - Prob. 47SCCh. 19.10 - Prob. 48SCCh. 19.10 - Prob. 49SCCh. 19 - Prob. 1RECh. 19 - Prob. 2RECh. 19 - Prob. 3RECh. 19 - Prob. 4RECh. 19 - Prob. 5RECh. 19 - Prob. 6RECh. 19 - Prob. 7RECh. 19 - Prob. 8RECh. 19 - Prob. 9RECh. 19 - Prob. 10RECh. 19 - Prob. 11RECh. 19 - Prob. 12RECh. 19 - Prob. 13RECh. 19 - Prob. 1PECh. 19 - Prob. 2PECh. 19 - Prob. 3PECh. 19 - Prob. 4PECh. 19 - Prob. 5PECh. 19 - Prob. 6PECh. 19 - Prob. 7PECh. 19 - Prob. 8PECh. 19 - Prob. 9PECh. 19 - Prob. 10PECh. 19 - Prob. 11PECh. 19 - Prob. 12PECh. 19 - Prob. 13PECh. 19 - Prob. 14PECh. 19 - Prob. 15PECh. 19 - Prob. 16PECh. 19 - Prob. 17PECh. 19 - Prob. 18PECh. 19 - Prob. 19PECh. 19 - Prob. 20PECh. 19 - Prob. 1PPCh. 19 - Prob. 2PPCh. 19 - Prob. 3PPCh. 19 - Prob. 4PPCh. 19 - Prob. 5PPCh. 19 - Prob. 6PPCh. 19 - Prob. 7PPCh. 19 - Prob. 8PPCh. 19 - Prob. 9PPCh. 19 - Prob. 10PPCh. 19 - Prob. 11PPCh. 19 - Prob. 12PP
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education