X11: teenSum

Write a function in Java that implements the following logic: Given 2 ints, a and b, return their sum. However, "teen" values in the range 13..19 inclusive, are extra lucky. So if either value is a teen, just return 19.

Reset

Practice a different Java exercise