@chetanaegis: I don't think there is a num in the OP's code. And I wonder if the claim that it is best to always check explicitly for null might be a little extravagant. Sometimes if a variable is...
Type: Posts; User: pbrockway2
@chetanaegis: I don't think there is a num in the OP's code. And I wonder if the claim that it is best to always check explicitly for null might be a little extravagant. Sometimes if a variable is...
I'm guessing that line 51 is this one:
if (search.equals(s[i].getName()))
Now you will get a null pointer exception whenever you try and use a variable (or other expression) as if it had...
Hi TaoNinja, welcome to the forums!
I have added "code" tags to your post. The idea is that you put
at the start of any code and at the end: that way the formatting is preserved by the forum...