zygimantus
3/15/2015 - 2:00 PM

Some things that can be done with classes in Java.

Some things that can be done with classes in Java.

/*
  Prints out declared methods of a class
*/
Method[] methods = t.getClass().getDeclaredMethods();

for (Method method : methods) {
    System.out.println("public method: " + method);
}