Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    1,099

    Re: Constructor parameter

    Here is a link to the tutorial about how to throw an exception: https://docs.oracle.com/javase/tutorial/essential/exceptions/throwing.html

    When int length is <0 then throw an exception.

    Pass...
  2. Replies
    3
    Views
    1,099

    Re: Constructor parameter

    Throw an exception like the InvalidArgumentException
Results 1 to 2 of 2