What am I doing wrong?
int valin;
int valthis;
//init int vars
p_Coef.set(x, Integer(vthis + vin));
Printable View
What am I doing wrong?
int valin;
int valthis;
//init int vars
p_Coef.set(x, Integer(vthis + vin));
p_Coef.set(x, Integer(vthis + vin));
Its seems you are creating an new Integer object without using new
Looks like a likely error from someone coming from C++...
p_Coef.set(x, new Integer(vthis + vin));
Thanks for you help guys. I solved the problem right after I posted. Figures, huh?
Cornered Bee,
I am using Java for school. I do have experience with other languages, not too much with C++ though. I have used Java more, that is for sure. I have the most exp with Basic languages, so my mind does not default to full OOP (gotta retrain my brain).
Thanks for the help fellas.