Question: Program 1 : Reading / Writing multiple data types Write 3 files each with 1 0 lines of 3 different data types. Integers Write a
Program :
Reading Writing multiple data types
Write files each with lines of different data types.
Integers
Write a series of random integers to a file "integers.txt
Read those integers from the file
Doubles
Write a series of random doubles to a file "doubles.txt
Read those doubles from the file
Strings
Write a series of random strings to a file "strings.txt
Read those strings from the file
For each of the data types and their specified file:
Java.... Open the file for writing
Write lines of the respective data type
Close the file
Open the file for reading
Read all lines from the file and print them to the console
Print the file name that is being opened and closed
Use the following to create a random string:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
