I\'m trying to write a small program that prints out distinct numbers in an array. For example if a user enters 1,1,3,5,7,4,3 the program will only print out 1,3,5,7,4.
The simplest way would be to add all of the elements to a Set and then just print the contents of the Set.
Set