Similar Books


    No books found

Title
Chapter: 12 / Q: 18
(Add package statement) Suppose you have Java source files under the directories chapter1, chapter2, . . . , chapter34
Chapter: 12 / Q: 19
(Count words) Write a program that counts the number of words in President Abraham Lincoln’s Gettysburg address from http://cs.armstrong.edu/liang/data/ Lincoln.txt
Chapter: 12 / Q: 20
(Remove package statement) Suppose you have Java source files under the directories chapter1, chapter2, . . . , chapter34. Write a program to remove the statement package chapteri; in the first line for each Java source file under the directory chapteri
Chapter: 12 / Q: 21
(Data sorted?) Write a program that reads the strings from file SortedStrings. txt and reports whether the strings in the files are stored in increasing order
Chapter: 12 / Q: 22
(Replace text) Revise Programming Exercise 12.16 to replace a string in a file with a new string for all files in the specified directory using the command:
Chapter: 12 / Q: 23
(Process scores in a text file on the Web) Suppose that the text file on the Web http://cs.armstrong.edu/liang/data/Scores.txt contains an unspecified number of scores. Write a program that reads the scores from the file and displays their total and average. Scores are separated by blanks
Chapter: 12 / Q: 24
(Create large dataset) Create a data file with 1,000 lines. Each line in the file consists of a faculty member’s first name, last name, rank, and salary. The faculty member’s first name and last name for the ith line are FirstNamei and LastNamei
Chapter: 12 / Q: 25
(Process large dataset) A university posts its employees’ salaries at http:// cs.armstrong.edu/liang/data/Salary.txt. Each line in the file consists of a faculty member’s first name, last name, rank, and salary (see Programming Exercise 12.24)
Chapter: 12 / Q: 26
(Create a directory) Write a program that prompts the user to enter a directory name and creates a directory using the File’s mkdirs method
Chapter: 12 / Q: 27
(Replace words) Suppose you have a lot of files in a directory that contain words Exercisei_j, where i and j are digits. Write a program that pads a 0 before i if i is a single digit and 0 before j if j is a single digit
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