Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Short Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Short" Watch "Short" New topic
Author

Short

Bart Wilson
Greenhorn

Joined: Aug 01, 2001
Posts: 17
How do you check for null for Short type?
I can't use 0 (zero).
???
Thanks
Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
Short s;
if (s == null)
Is this what you are asking?
Bart Wilson
Greenhorn

Joined: Aug 01, 2001
Posts: 17
Yes if it equals null I want to equal something other than null.
Thanks
Originally posted by Chad McGowan:
Short s;
if (s == null)
Is this what you are asking?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Short