Problem Description

Task: if x is negative, throw IllegalArgumentException. Else return x.

Input Format

Java method

Output Format

Return value

Constraints

Simple validation.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next