Set a breakpoint

StepsSetting a breakpoint in a Java class

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

  1. In the Source Code window, scroll down until you see the beginning of the Query() method, near the end of the class, starting with:

    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. After setting the breakpoint, the Java class does not need to be recompiled.