For the below code, calling Add method from Calculator main method, the data passed is 1, 2. I need the data passing between the method calls. I was able to get the callgraph. Can any one help me how to get intermediate data in java Screenshot - https://i.stack.imgur.com/LCp1Y.jpg
package dr;
public class Calculator {
public static void main(String args[]){
Addition ob1 = new Addition();
Multiplication ob2 = new Multiplication();
int result1 = ob1.Add(1, 2);
int result2 = ob2.Multiply(2, 4);
System.out.println(result1);
System.out.println(result2);
}
}
class Multiplication {
public int Multiply(int[enter image description here][1] a, int b){
return a*b;enter image description here
}
}
class Addition {
public int Add(int a, int b){
return a + b;
}
}