1) I have to read a txt file in java. Find out the methods in the class and also find out what are all the methods called by a single method.
For eg -> Sport is my main method. That method might call external methods like cricket football and tennis.
Country is a method. It calls India, USA and england.
2) My output should be like sport then cricket football tennis. Followed by Country then India USA England.
3) basically all the functions and the functions which are being called inside a function.
4) have to do this in Java. I am very new to Java. Searched in net and found stack trace concept.
I know to use buffered reader in Java to read contents from file. And
.Getmethodname to find out method names .getstacktrace to get all the element names. But i am not sure if this is correct. Please help me to finish this task.
Aucun commentaire:
Enregistrer un commentaire