Re: Pixelgrabber and Vectors, changes not happening.
- From: Joshua Cranmer <Pidgeot18@xxxxxxxxxxx>
- Date: Sat, 28 Jul 2007 00:06:07 GMT
On Fri, 27 Jul 2007 16:00:42 -0700, bH wrote:
if (mSt == "000000"){
String == comparison only works under certain conditions that are not
true for about 95% of the cases.
The short answer:
Use "000000".equals(mSt) instead of mSt == "000000"
The long answer:
There is a long thread explaining this topic in full detail in the
comp.lang.java.programmer group, entitled "String.equals()" by Chameleon,
started on July 22, 2007.
.
- Follow-Ups:
- Re: Pixelgrabber and Vectors, changes not happening.
- From: Roedy Green
- Re: Pixelgrabber and Vectors, changes not happening.
- From: bH
- Re: Pixelgrabber and Vectors, changes not happening.
- References:
- Prev by Date: Need Help Making an Alias for a Java Plugin
- Next by Date: Is there a better way to do this?
- Previous by thread: Pixelgrabber and Vectors, changes not happening.
- Next by thread: Re: Pixelgrabber and Vectors, changes not happening.
- Index(es):