Re: when using equals method with a null string...
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Fri, 10 Mar 2006 16:39:57 GMT
<njzy333@xxxxxxxxx> wrote in message news:1142008176.285334.323620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Tony,
That is strange. The difference between your code and my code is that I
declared both strings to be private, and neither are NEWed. I changed
my code according to your example, and I'm still getting an exception.
I guess there is a slight difference in our environment or libraries?
I'm using NetBeans with Java 1.5.
Thanks.
Try running Tony's code exactly as is. If you're getting NPEs, then your Java is broken, and you should uninstall it, redownload it, and reinstall it.
- Oliver
.
- References:
- when using equals method with a null string...
- From: minjie
- Re: when using equals method with a null string...
- From: Tony Burrows
- Re: when using equals method with a null string...
- From: njzy333
- when using equals method with a null string...
- Prev by Date: redistribution of jdbc driver?
- Next by Date: Re: object stream format
- Previous by thread: Re: when using equals method with a null string...
- Next by thread: Re: when using equals method with a null string...
- Index(es):
Relevant Pages
|