Created
June 19, 2017 21:49
-
-
Save zkylab/082f6cc27d10412549b8454121a5a391 to your computer and use it in GitHub Desktop.
reflection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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