Skip to content

Instantly share code, notes, and snippets.

@Signoo
Signoo / Utils.java
Created May 8, 2018 15:26
Get list of declared methods from a Class using Reflection
try {
Class c = Utils.class;
Method[] m = c.getDeclaredMethods();
for( int i = 0; i < m.length; i++ )
{
System.out.println(m[i].toString());
}
} catch (Throwable e) {
System.err.println(e);
}