java 打印调用者

System.out.println(new Exception().getStackTrace()[1].getMethodName());
posted @ 2022-11-07 09:04  y=x^2  阅读(86)  评论(0)    收藏  举报