Question: Java Challenge 2: Writing numbers to a binary file and then reading them to calculate the sum Write a BinarySum class that asks the user
Challenge 2: Writing numbers to a binary file and then reading them to calculate the sum Write a BinarySum class that asks the user to enter numbers and-1 to end. User will enter the numbers and program will write the numbers to a binary file (writelnt(int). Separate them with a space character. Name the file numbers.dat. Program will then read the numbers from the binary file and print the sum to the console
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
