I tried a little combination with output like -> no space after last number, but it's not validate still.
Maybe you'll see what I don't and in that time I check other help question and think what that it'll would be.
I print it from new list
List <Integer> list = new ArrayList<>();
becouse before that printing result from HashMap (with space after last number), I can't validate too.
Enter a file name from the console.
Find the byte or bytes with the minimum number of
repetitions.
Display them on the screen, separated by spaces.
Close the IO stream.
Requirements:
•
The program should read a file name from the console.
•
Use a FileInputStream to read from the file.
•
All of the least frequently repeated bytes
from the file should be displayed,
separated by spaces.
•
The screen output should be displayed in one line.
•
The stream used to read the file must be closed.