Write a program in java that reads a file of numbers of


Program: Write a program in Java that reads a file of numbers of type int and outputs all the numbers to another file, but without there being any duplicate numbers.

Assume that the input file is sorted from the smallest numbers first two largest numbers last. 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 listed from smallest to largest. Your program should obtain both file names from the user.

This should be done with a text file and a binary file. For the text version of the file, the file should be a text file with one number per line.

For the binary version, the file should be a binary file that has numbers of type int that were written using writeInt. Last but not least, the code should catch and handle exceptions when necessary.

Code this program in java programming-It must compile with no errors and add comments in code section.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program in java that reads a file of numbers of
Reference No:- TGS0951350

Expected delivery within 24 Hours