Return Program In J Code Example

Snippet 1
  A return statement causes the program control to transfer back to the caller of a method.
   
Snippet 2
      // a method for computing the area of the rectangle
    public int getArea() {
        return width * height;
    }