「Java入門」Java現在呼び出すメソッド名を取得

javaコード:
String methodName =
Thread.currentThread().getStackTrace()[1].getMethodName();
String methodName = Thread.currentThread().getStackTrace()[1].getMethodName
();

Java

Posted by arkgame