Write a program that takes integers from user and writes them into a file until user inputs
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that takes integers from user and writes them into a file until user inputs a negative number. The program should then read the file and print sum and average of the numbers.
Question 2: Create an Employee class with name and id. Write 3 Employee objects to a file using serialization. Then using deserialization, read the Employee objects back from the file and print the name and id for each object.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: