EmSE-Figure7: Difference between revisions

No edit summary
No edit summary
Line 2: Line 2:
{| class="wikitable" style="text-align: left; width: 100%;"
{| class="wikitable" style="text-align: left; width: 100%;"
|+ Figure 7. Method <code>addIfPositive</code>
|+ Figure 7. Method <code>addIfPositive</code>
!
! colspan=4 | Line Count for Team
! colspan=4 | Field Count for Team
! colspan=4 | Method Count for Team
|-
|-
| '''Class'''
<code>
| '''A'''
public int addIfPositive
(int a, int b)
{
if (a >= 0 && b >= 0)
    return (a+b);
return -1;
}
</code>
|}