Problem Description

Task: create static factory for Rectangle to validate inputs (w,h > 0).

Input Format

Java method

Output Format

Return value

Constraints

Throw exception on invalid.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next