Results 1 to 2 of 2
  1. #1
    augustas656 is offline Senior Member
    Join Date
    Apr 2014
    Location
    United Kingdom
    Posts
    176
    Rep Power
    1

    Default Very Compact Test For Any of 4 Values Being Null.

    Can anyone give me a very compact if statement or any type of test for checking if atleast ONE out of 4 integers is null. So 1 of all, 2 of all, 3 of all, or all of them being null will give a specific result ELSE do something else.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Very Compact Test For Any of 4 Values Being Null.

    What have you tried?
    NB: an integer cannot be null.
    An Integer can.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. JTable write in the file values null
    By felipin85 in forum New To Java
    Replies: 8
    Last Post: 05-11-2011, 11:58 AM
  2. Array null values
    By blug in forum New To Java
    Replies: 2
    Last Post: 03-20-2011, 07:48 AM
  3. null values
    By jabo in forum New To Java
    Replies: 3
    Last Post: 03-31-2010, 04:44 PM
  4. How to get null values stored in array
    By Ms.Ranjan in forum New To Java
    Replies: 4
    Last Post: 05-21-2009, 11:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •