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
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
Get step-by-step solutions from verified subject matter experts
