It seems this *can* work (depending on your application), but one should know this operation creates a new Integer object out of the old. So if you had any other references to the old one, they will...
Type: Posts; User: gib65
It seems this *can* work (depending on your application), but one should know this operation creates a new Integer object out of the old. So if you had any other references to the old one, they will...
Well, the compiler is happy with this.
I'm using Integers because I'm placing them in a Vector.
Is there a way to do arithmetic on Integer objects? For example, I tried the following without success:
Integer I = new Integer(1);
I++;
I also noticed there is no setValue(int) method in the...