public void a(Object o) { ... Collection c = (Vector)o; Iterator it = c.iterator();//此句出错 ... }
Hi,Vector is a Class; Collection is an Interface; And Vector is already implemented Collection; Anyway, I don't really understand what are u trying to do.
不理解不理解。
{
...
Collection c = (Vector)o;
Iterator it = c.iterator();//此句出错
...
}
Collection is an Interface;
And Vector is already implemented Collection;
Anyway, I don't really understand what are u trying to do.
Vector你不用转换直接把function(v)