|
-
Sep 17th, 2003, 10:47 PM
#1
Thread Starter
Hyperactive Member
ArrayList.set (should be easy)
What am I doing wrong?
int valin;
int valthis;
//init int vars
p_Coef.set(x, Integer(vthis + vin));
-
Sep 18th, 2003, 12:28 AM
#2
Dazed Member
p_Coef.set(x, Integer(vthis + vin));
Its seems you are creating an new Integer object without using new
Last edited by Dilenger4; Sep 18th, 2003 at 12:32 AM.
-
Sep 18th, 2003, 03:45 AM
#3
Looks like a likely error from someone coming from C++...
p_Coef.set(x, new Integer(vthis + vin));
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 18th, 2003, 10:44 AM
#4
Thread Starter
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|