Write a program that reads a file of numbers of type int and writes all the numb
ID: 3542623 • Letter: W
Question
Write a program that reads a file of numbers of type int and writes all the numbers to another file, but without any duplicate numbers. Assume that the numbers in the input file are already ordered from smallest to largest. After the program is run, the new file will contain all the numbers in the original file, but no number will appear more than once in the file. The numbers in the output file should also be sorted from smallest to largest. Your program should obtain both files from the user.
I am having problems with this problem bouncing back and forth between appending the file and reading the file. Confused how many and what files I should have created. This program is to be done in java.
Explanation / Answer
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.