CSC403: drawSteps [3/5] Previous pageContentsNext page

01
02
03
04
05
06
07
08
09
10
11
12
13
package algs11;
import stdlib.*;
public class Hello {
  public static void main (String[] args) {
    Trace.drawSteps (); 
    Trace.run ();
    int i = 0;
    while (i < 3) {
      StdOut.println (i);
      i = i + 1;
    }
  }
}

Trace.drawSteps() causes a drawing to be created at every step of execution.

Trace.drawSteps() must be called before Trace.run()

Previous pageContentsNext page