Write a statement that throws an IllegalArgumentException with the error message Argument cannot be negative.

Question:

Write a statement that throws an IllegalArgumentException with the error message “Argument cannot be negative”.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: