Question: Java Write code that does the following: Opens a file named numbers.txt, uses a loop to write the odd numbers from 1 through 200 to
Java

Write code that does the following: Opens a file named numbers.txt, uses a loop to write the odd numbers from 1 through 200 to the file and then close the file Write the code that does the following: Open the file numbers.txt created in the question 4. Read all of the numbers from the file Count how many numbers in the file (store in the variable count) add all these numbers (store in the variable sum) close the file numbers.txt display the message: There are count numbers Sum of them is: sum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
