//TestDoublePlusOperator.java

public class TestDoublePlusOperator
{
    public static void main(String args[])
    {
        //Illustrating the use of ++ in expressions
        //=========================================
        int m = 4;
        int result = 3 * (++m);
        System.out.println("m = " + m + " and result = " + result);

        int n = 4;
        result = 3 * (n++);
        System.out.println("n = " + n + " and result = " + result);
    }
}

