I think you probably want to study basic Java first then or you're
going to run into a lot more confusion.

Vector probabilities = new SparseVector();

is what you want. Interfaces and instantiating objects are the very
basics of Java.

On Fri, Sep 4, 2009 at 5:30 PM, Sven Boekhoff<[email protected]> wrote:
> I never worked with interfaces.
> And i also don't know what "instantiate an implementation" means.
> How does it look like?
>
> Sean Owen wrote:
>>
>> Yes, Vector is an interface! You need to instantiate an implementation
>> like DenseVector.
>>
>> On Fri, Sep 4, 2009 at 5:25 PM, Sven Boekhoff<[email protected]> wrote:
>>>
>>> But i cant create an Vector object:
>>>
>>> Vector probabilities = new Vector();
>>>
>>> gives an error.
>>>
>

Reply via email to