• Notice regarding image hosts and attachments. See here.

null

Soldato
Joined
26 Aug 2005
Posts
6,922
Location
UK
Hi guys,

Just abit stuck on something. Basically I've got an array of IDs. I've got a if statement that checks that student doesn’t have a mark already.

Basically I have -


marks[num] != null;

Obviously you can't apply null to a int type so I was wondering how'd you do it?
 
Hi,

Unfortunately the specification states that they have to of type int, and we have to define the index as 0.

Basically I just have to check the array of marks doesn’t have a mark already.
 
Back
Top Bottom