当我调试程序时,我可以单击调用堆栈中的up方法,并检查up方法参数'值。 我怎么能在代码中执行此操作
public class Example() {
public void method1(String s) {
method2();
}
public void method2(/*whitout any parameters*/){
//how can I access the parameter value of 's' in method1's paramters at here
}
}