如何访问up方法参数'当前方法的价值

时间:2016-08-26 10:55:31

标签: java multithreading stack

当我调试程序时,我可以单击调用堆栈中的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
  }

}

0 个答案:

没有答案