Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java code statistics

Posted on 2003-10-30
3
Medium Priority
?
209 Views
Last Modified: 2013-12-14
Hi!
I need a program that counts the lines with/without comment.
I know that it is quite simple to do it, but is there a project that can do many kinds of statistics (such as count of words, chars, number of methods, and others...)
I'm not looking for commercial product.
Thanks in advanced!
0
Comment
Question by:rzvika2
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
dualsoul earned 500 total points
ID: 9649471
this tool gets this metric from your sources JavaNCSS:
http://www.kclee.com/clemens/java/javancss/

also you can use RefactorIT programm, which can collect this metric, and many others too.
http://www.refactorit.com/
0
 
LVL 7

Expert Comment

by:grim_toaster
ID: 9649791
Currently the project I'm working on uses several open-source tools for obtaining metrics:

JCSC         (http://jcsc.sourceforge.net) - quality analysis tool
checkstyle (http://checkstyle.sourceforge.net) - for formatting checks of the code
JDepend    (http://www.clarkware.com/software/JDepend.html) - code dependencies
statCVS    (http://statcvs.sf.net)            - useful if you use CVS to get project statistics
PMD         (http://pmd.sourceforge.net) - VERY handy for spotting potential problems (unused variables, empty catch blocks, empty if statements, etc
JavaNCSS - (see above) - good for general metrics
0
 
LVL 15

Expert Comment

by:dualsoul
ID: 9649818
it's all inside RefactorIT :) but the author is not about commercial tool

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question