I am getting an error with this constructor, and i have no idea how to fix? I am a beginner at java. This is from an example exercise that i was trying to learn:
<
int is not an object in java (it's a primitive), so you cannot invoke methods on it.
int
One simple way to solve it is using Integer.toString(intArray[i])