Similar Books


    No books found

Title
Chapter: 21 / Q: 5
(Syntax highlighting) Write a program that converts a Java file into an HTML file. In the HTML file, the keywords, comments, and literals are displayed in bold navy, green, and blue, respectively. Use the command line to pass a Java file and an HTML file. For example, the following command
Chapter: 21 / Q: 6
(Count the occurrences of numbers entered) Write a program that reads an unspecified number of integers and finds the one that has the most occurrences
Chapter: 21 / Q: 7
(Revise Listing 21.9, CountOccurrenceOfWords.java) Rewrite Listing 21.9 to display the words in ascending order of occurrence counts
Chapter: 21 / Q: 8
(Count the occurrences of words in a text file) Rewrite Listing 21.9 to read the text from a text file. The text file is passed as a command-line argument. Words are delimited by whitespace characters, punctuation marks (,;.:?), quotation marks (\'\"), and parentheses
Chapter: 21 / Q: 9
(Guess the capitals using maps) Rewrite Programming Exercise 8.37 to store pairs of each state and its capital in a map. Your program should prompt the user to enter a state and should display the capital for the state
Chapter: 21 / Q: 10
(Count the occurrences of each keyword) Rewrite Listing 21.7 CountKeywords. java to read in a Java source code file and count the occurrence of each keyword in the file, but don’t count the keyword if it is in a comment or in a string literal
Chapter: 21 / Q: 11
(Baby name popularity ranking) Use the data files from Programming Exercise 12.31 to write a program that enables the user to select a year, gender,
Chapter: 21 / Q: 12
(Name for both genders) Write a program that prompts the user to enter one of the filenames described in Programming Exercise 12.31 and displays the names that are used for both genders in the file. Use sets to store names and find common names in two sets. Here is a sample run:
Chapter: 21 / Q: 13
(Baby name popularity ranking) Revise Programming Exercise 21.11 to prompt the user to enter year, gender, and name and display the ranking for the name. Prompt the user to enter another inquiry or exit the program. Here is a sample run:
Chapter: 21 / Q: 14
(Web crawler) Rewrite Listing 12.18, WebCrawler.java, to improve the performance by using appropriate new data structures for listOfPendingURLs and listofTraversedURLs
total questions: 772

Questions

772

Views

A PHP Error was encountered

Severity: Warning

Message: Undefined property: stdClass::$TotalViews

Filename: books/book.php

Line Number: 411

Best Answers

299

Points

5