If it looks like a bug acts like a bug ...

From: Nomen Nescio (nobody_at_dizum.com)
Date: 04/29/04


Date: Thu, 29 Apr 2004 17:50:02 +0200 (CEST)


I say its a bug. What do you think?

public class test
    public static void main(String args)

       int n
       Integer I

       I = new Integer(0)
       for (int i = 0 i < 5 i++)
          System.out.println("n = "+I)
          n = I.intValue()
          I = new Integer(n+1) //increment//
       

       I = new Integer(0)
       for (int i = 0 i < 5 i++)
          System.out.println("n = "+I)
          n = I.intValue()
          I = new Integer(n++) //increment//
       

    

P.S. Thank you, Raymond DeCampo, for you help with the porxyHost System propery problem.



Relevant Pages