Sample of Class#getMethod() and Method#invoke()
Japanese
Put the source-codes into
pkg
directory.
javac pkg\*.java
(compile)
java pkg.MethodInvoke
(execution)
MethodInvoke.java
Printer.java
the result