On Sat, Mar 26, 2011 at 9:20 PM, d.rajkamal <[email protected]> wrote:
> Sir/Madam,
>      my actual problem, i need to calculate metrics of java program, (i
> getting java source code as input), i need to count comment lines n java
> program(both single and multiple), and in multiple comment to count how many
> lines in it, is there any specific class in java for this purpose or any
> idea about it??

Raj,

There is a tool called Java NCSS[1] ( which will do exactly the same
thing that you want to do. It's a open source tool and you can get the
sourcecode of the same and see how it is done. There is also a mailing
list and a source repo. so you can start contributing by fixing a few
defects for them :-)

1. Java Non Commented Source Statements - http://javancss.codehaus.org/


with regards,
Natarajan
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to