EmSE-Figure7: Difference between revisions

From Ben Works
Jump to navigation Jump to search
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>
|}

Revision as of 14:23, 5 September 2013

public int addIfPositive (int a, int b) { if (a >= 0 && b >= 0) return (a+b); return -1; }
Figure 7. Method addIfPositive