CodeCamper
CodeCamper

Reputation: 6984

com.badlogic.gdx.utils.Array parameters for Constructor

public Array (boolean ordered, int capacity, Class arrayType)

how do I call this constructor? I am trying this below

Array<Float> red = new Array<Float>(false,1,Float);

gives me an error on Float, isn't Float a class?

Upvotes: 1

Views: 59

Answers (1)

echen
echen

Reputation: 2072

I think you need Float.class bud, that actually returns the object that represents the Float class.

Upvotes: 1

Related Questions