3 Replies Latest reply: Jun 9, 2008 1:44 PM by 800575 RSS

    Getting TRUE/FALSE form if statement execution

    843810
      Is there is a way to find out ( or trace ) the value of if-statement in the program. What I mean that if I run trace.java program on the follwing code, can I get True value during the tracing process.
      int x = 5;
      int y = 2;
      if ( x > y)  // <--------- I mean this line
             System.out.println(" x>y ");
      Edited by: Iman_S on May 29, 2008 6:22 AM