I may be thinking unclearly, it is a tad early, but if i need to check a string to see if it is null, how would i go about doing this? My first guess was string.isNull(), but alas there is no method like that. So I went to my friend Google and everything I saw there said string==null. I guess I don't understand how this is possible. How can one compare the equallatiy of nothing? If it works, great, but I would sure love to understand the logic behind it.
Tony, null is a Java keyword that represents the absence of an object. Since == is a built in operator, the language Java itself checks to see if the values on both sides of the operator are null. If so, it returns true. If one of them is "something" (aka non-null), it returns false.
string.isNull() doesn't work because there is no string object to call isNull() on.