title: How do I count number of classes and methods in java project by passing the path of that project?
body: <p>I am developing a java project in which I will pass the path of another java project file and it will display the total number of classes, methods, variables and their type in that particular project. I will pass the path with the help of file handling but what kind of code should I write to display the number of classes and methods?</p>