Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,272

    Re: Beginner Java Method

    Well written code checks for error conditions and acts to prevent exceptions.
    If your instructor told you not to do that, it is not a good practice to skip tests like that but you might have to...
  2. Replies
    3
    Views
    1,272

    Re: Beginner Java Method

    Code should always test that the data is what is expected. In this case the code expected a String with at least 1 character. The String class's length method would help here.

    If you can not...
Results 1 to 2 of 2