← Unit 2 · all exercises
Saved in this browser only

Not a teenager

A teenager is aged 13 to 19 inclusive. Return true when the age is NOT in that range.

boolean notTeen(int age)

Solution.java
Loading editor…
Results

Examples

  • notTeen(25) → true
  • notTeen(15) → false

There are also 4 hidden tests you can't see. Solve the problem, not the examples.