Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
Asmaamasry Questions
705 Questions
(Encrypt files) Encode the file by adding 5 to every byte in the file. Write a program that prompts the user to enter an input file name and an output file name and saves the encrypted version of the input file to the output file
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
204
(Combine files GUI) Rewrite Exercise 17.12 with a GUI, as shown in Figure 17.21b
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
161
(Combine files) Write a utility program that combines the files together into a new file using the following command:
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
171
Split files GUI) Rewrite Exercise 17.10 with a GUI, as shown in Figure 17.21a
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
164
(Split files) Suppose you want to back up a huge file (e.g., a 10-GB AVI file) to a CD-R. You can achieve it by splitting the file into smaller pieces and backing up these pieces separately
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
359
(Address book) Write a program that stores, retrieves, adds, and updates addresses as shown in Figure 17.20
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
152
(Update count) Suppose you wish to track how many times a program has been executed. You can store an int to count the file
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
161
(Restore objects from a file) Suppose a file named Exercise17_07.dat has been created using the ObjectOutputStream
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
164
(Store Loan objects) The Loan class in Listing 10.2 does not implement Serializable. Rewrite the Loan class to implement Serializable. Write a program that creates five Loan objects and stores them in a file named Exercise17_06.dat
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
151
(Store objects and arrays in a file) Write a program that stores an array of the five int values 1, 2, 3, 4, and 5, a Date object for the current time, and the double value 5.5 into the file named Exercise17_05.dat
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
159
(Convert a text file into UTF) Write a program that reads lines of characters from a text file and writes each line as a UTF-8 string into a binary file
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
175
(Sum all the integers in a binary data file) Suppose a binary data file named Exercise17_03.dat has been created and its data are created using writeInt(int) in DataOutputStream
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
124
(Create a binary data file) Write a program to create a file named Exercise17_02.dat if it does not exist
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
238
Total:
705
Previous
47
48
49
50
51
Next
Go