Hi,

What is the best method to pass an array to a method inside a generic class?

For example if I something like this:
Java Code:
class importClass <T extends Number>
{
    double calculateTotals(T[] totalsArray)
    {
     ....do some calculations
     }
}
How do I pass an array to the method calculateTotals?

Thanks!