Set a breakpoint

You can set a breakpoint at the beginning of the Query() method. When the method is invoked, execution stops at the breakpoint.

StepsSetting a breakpoint in a Java class

  1. In the Source Code window, page down until you see the beginning of the Query() method. This method is near the end of the class, and starts with the following line:

    public static int Query() {
    
  2. Click the green indicator to the left of the first line of the method, until it is red. The first line of the method is:

    int max_price = 0;
    

    Repeatedly clicking the indicator toggles its status.