You can change value 1 before starting animation

Output

Variable Name     Value in Memory
            x
            n
            k
num1
num2
result
  1  public class Increment {
  2    public static void main(String[] args) {
  3      int x = ;
  4      System.out.println("Before the call, x is " + x);
  5      increment(x);
  6      System.out.println("After the call, x is " + x);
  7    }
  8  
  9    public static void increment(int n) {
 10      n++;
 11      System.out.println("n inside the method is " + n);
 12    }
 13  }