what is the use of 'int' before a method in java?
<p>In the following code we can use 'calculate()' directly but what is the use of 'int' before calculate()?</p>

<pre><code>class Rectangle{
    int length, breadth;
    void show(int x, int y){
        length = x;
        breadth = y;
    }
    int calculate(){
        return(length * breadth);
    }
}
public class EnterValuesFromKeyboard{
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        int a = Integer.parseInt(args[0]);
        int b = Integer.parseInt(args[1]);
        rectangle.show(a, b);
        System.out.println(
              " you have entered these values : " +  a  + " and " +  b);
        int area = rectangle.calculate();
        System.out.println(" area of a rectange is  : " + area);
    }
}
</code></pre>
