Hello

I'd like to have a list of ints inside my vector..

I tried to do the following:

private static Vector<List<int>> getCombMatrix() {

But it will give me error: Syntax error on token "int", Dimensions expected after this token

However, this works okay:

private static Vector<int[]> getCombMatrix() {

What am I doing wrong?

Thanks for help

you can't use primitives as elements in a Collection.
Nor can you use arrays.

So you use Integer instead of int.

Thanks a lot!

Nor can you use arrays.

no

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.