I have a class like below
class A{
private var1, var2;
public void methodA(){
sout(var1);
}
public void methodB(){
sout(var1);
sout(var2);
}
}
Here in that code snippet I have class with two instance variables var1, var2 and two methods methodA, methodB. var1 is referenced in both methodA and methodB. How can I extract this information from a java class?