Hello folks,
I have started learning java, and this might be a really easy question, is there any a correct way to count the number of statements in Java code and to count the number of statements which have been executed?
I am studying about 'statement coverage' and want to understand this concept.
For example how may statements are there in the following code?
Printsum (Int a, Int b) { ------------ Printsum is a function
Int result = a+ b;
If (result> 0)
Print ("Positive", result)
Else
Print ("Negative", result)
}