Can someone give me the java code for LCOM(lack of cohesion) or any other cohesion metrics which takes a class as input and gives a numerical value for cohesion.
+1
A:
I don't think software like that exists.
Cohesion is a term for humans to evaluate a given class or module in regards to how well its individual parts relate to a single task.
The JVM knows that you're inserting Strings into a List and multiplying two doubles but it can't know that you're compiling a list of all the places you went last week while simultaneously calculating the GDP of France.
Kevin
2009-02-08 00:39:13
A:
For what purpose would you like such a tool ?
Are you trying to produce a report or something to convince someone that some code is great ?
mP
2009-02-08 00:45:58