ProAnswers.org

How to use increment and decrement operators in an expression level?

public class MainClass {

  public static void main(String[] args) {

    int numA = 5;

    int numB = 10;

    int numC = 0;

 

    numC = ++numA + numB;

    

    System.out.println(numA);

    System.out.println(numC);

  }

}

6

16