I wanted to know how to declare a set with a generic type that is not a class. Example: Set<double>
.
All the examples I've seen the set is of a class.
I'm starting to see now to see sets. I need to make a Set
that has 20 random numbers and take a mean.
Will I have to create a class with double
attribute to do this? Or is there another way?