few problems with same code..
i am just trying to print all the 'method' names of java files from my folder. its not showing any error but during testing i face different kinds of problem for each output with same code..
in addition, i might mention how program suppose to work...
->it reads every files line by line and find 1st parentheses ( "(" ), if have any then get the whole line before parentheses. Then locate any return value has or not in those line, if found then the next word should be a method name for that java file.
i followed this:
Re: few problems with same code..
a method can return nothing if the method is declared void
and also it can return a class or even an ArrayList or Vector
not only the above you use.
Also you are looking for "(" but you can put it even for mathematics equations or for type casting and for many more reasons.
|All times are GMT +5.5. The time now is 11:14.|