Search:

Type: Posts; User: gib65

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    3,509

    Re: doing arithmetic on Integer objects

    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...
  2. Replies
    4
    Views
    3,509

    Re: doing arithmetic on Integer objects

    Well, the compiler is happy with this.

    I'm using Integers because I'm placing them in a Vector.
  3. Replies
    4
    Views
    3,509

    doing arithmetic on Integer objects

    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...
Results 1 to 3 of 3