#Cannot instantiate the type CollectionInteger

7 messages · Page 1 of 1 (latest)

west nest
#

Hi, I'm trying to implement this basic graph but keep running into the syntax error "Cannot instantiate the type CollectionInteger", wondering how to fix so I can get it working with the collection, thanks.

oak harness
#

Collection is an interface

#

you cannot instantiate an interface without implementing its methods

jagged blaze
#

you have to provide array too and as @oak harness said, Collection is an interface

oak harness
#

But you can use an ArrayList or any class that implements Collections instead

west nest
#

oh i see

#

gotcha