Question: in java plz 8. Write the code that asks a user for the name of a text file that contains a set of integers. And

 in java plz 8. Write the code that asks a user
in java plz

8. Write the code that asks a user for the name of a text file that contains a set of integers. And ask the user for the name of a second file(text) to write to. Read the first 5 values one at a time (use a loop) from the input file and output to the second file only if the number is positive. Assume all import statements are already done, but you must create any needed File or Stream objects. You may also assume the input file exists and contains at least 5 integers.(10) 8. Write the code that asks a user for the name of a text file that contains a set of integers. And ask the user for the name of a second file(text) to write to. Read the first 5 values one at a time (use a loop) from the input file and output to the second file only if the number is positive. Assume all import statements are already done, but you must create any needed File or Stream objects. You may also assume the input file exists and contains at least 5 integers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!