So, let's say I want to write a class that operates on different kinds of numbers, but I don't a priori know what kind of numbers (i.e. ints, doubles, etc.) I ...
I want to compare to variables, both of type T extends Number. Now I want to know which of the two variables is greater than the other or equal. Unfortunately I ...
I want to create a method that compares a number but can have an input that is any of the subclasses of Number.
I have looked at doing this in the following ...
I'm trying to write a class for representing datapoints (Unimaginatively called "DataPoint"). This will be used as a super class to different types of data. Different child classes will have a different number of dimensions. The problem is this: Some classes using this datapoint class as a generic type will need to know how many dimensions the datapoint just from its ...