Skip to content

Instantly share code, notes, and snippets.

@zkylab
Created June 19, 2017 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zkylab/082f6cc27d10412549b8454121a5a391 to your computer and use it in GitHub Desktop.
Save zkylab/082f6cc27d10412549b8454121a5a391 to your computer and use it in GitHub Desktop.
reflection
import java.lang.reflect.Method;
public class Demo {
public static void main(String[] args) {
Class ornekSinif = OrnekSinif.class;
Method[] methods = ornekSinif.getDeclaredMethods();
for (int i = 0; i < methods.length; i++){
System.out.println(methods[i].toString());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment