I want my program to be able to read in a file of java code and be able to identify the different methods. Is this possible to do with a buffered reader or should I be doing something different? Since methods can return any type (String/void/int/etc) and can be of many different types of modifier (private/public etc) I don't see how I can identify them easily.
public returnType methodName(String s){
How can I get my program to read that in and automatically detect that it is of the same format as:
private Set<String> nextstates(int newInt)