Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2270
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2012-11-16 08:05 -0800 |
| Message-ID | <5509b9ea-041a-46e6-b788-2abe90fcb8e7@googlegroups.com> (permalink) |
| Subject | Change decimal color code on the fly |
| From | Bob <bherbst65@hotmail.com> |
Hi All,
While making a datafile of decimal color pixel
codes for a small image, I want to change
a particular String number that will go into the datafile
to a different String number.
I am doing this before it is added to the
ArrayList. It does not seem to work and I need
to know why. Below is my test to identify
the String number and looking for the "if"
statement to recognize it"
Here is a snip of my code:
....
mSet = redStr + greenStr + blueStr;
System.out.println(mSet);//this is successful
mSetx= "255255255";
if (mSet == mSetx) {
System.out.println("yes, recognized");
//mSet = ("113000000");
}
colorpxl.add(mSet);// ArrayList
mSet = "";
Thanks in advance for your response.
Bob
Back to comp.lang.java.help | Previous | Next — Next in thread | Find similar | Unroll thread
Change decimal color code on the fly Bob <bherbst65@hotmail.com> - 2012-11-16 08:05 -0800
Re: Change decimal color code on the fly Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-16 11:49 -0500
Re: Change decimal color code on the fly markspace <-@.> - 2012-11-16 08:50 -0800
Re: Change decimal color code on the fly Nigel Wade <nmw@ion.le.ac.uk> - 2012-11-16 16:52 +0000
Re: Change decimal color code on the fly Roedy Green <see_website@mindprod.com.invalid> - 2012-11-16 10:14 -0800
Re: Change decimal color code on the fly Bob <bherbst65@hotmail.com> - 2012-11-16 10:39 -0800
Re: Change decimal color code on the fly Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-16 13:56 -0500
Re: Change decimal color code on the fly Bob <bherbst65@hotmail.com> - 2012-11-16 12:23 -0800
Re: Change decimal color code on the fly Lew <lewbloch@gmail.com> - 2012-11-16 12:38 -0800
Re: Change decimal color code on the fly Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-16 17:11 -0500
csiph-web