Terry Oliver, Welcome to JavaRanch. A ClassCastException is a runtime exception that shows that an object is being cast to a subclass of which it is not an instance. As, in the code you have used Generics. So, all the vectors can take an argument of type Vector.add(int,double) or Vector.add(double). So, here it is no chance that you can pass something ...