Search:

Type: Posts; User: helloworld922

Search: Search took 0.13 seconds.

  1. Thread: !=null

    by helloworld922
    Replies
    11
    Views
    2,664

    Re: !=null

    There's only one problem with that code: that doesn't actually block the user from creating the object with null parameters, it just tells the user that they have done so. The easiest way is to throw...
  2. Thread: !=null

    by helloworld922
    Replies
    11
    Views
    2,664

    Re: !=null

    Yes, I know, but what mechanism will you have in place to ensure null isn't allowed? throw an exception? set it to an empty string?
  3. Thread: !=null

    by helloworld922
    Replies
    11
    Views
    2,664

    Re: !=null

    What do you want to program to do if the inputs are null?
Results 1 to 3 of 3