|
-
Mar 5th, 2004, 05:04 AM
#1
Thread Starter
Frenzied Member
Check if a type int is assigned a value
I declare a variable:
public int left;
Sometimes it is assigned a value other times not. Obviously I want to catch times when it isn't assign to avoid errors but I can't find a way to do it I've tried:
if (left != null) {
But null can't be used with type int.
Help!
DJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|