Running the Examples
To run the code in the examples below, you can create a method for use in a model or application. You can, for example, choose the option Blank Model in the Model Wizard. To create a new method, go to the Developer tab in the Model Builder and click the New Method button in the ribbon. In the Application Builder, paste the code into the new method. Finally, you can run the code from the Developer tab in the Model Builder by choosing the method you just created from the Run Method toolbar menu. Alternatively, for running a single block of code, you can use the Java Shell window, with the benefit of not having to switch between the Model Builder and the Application Builder.