Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2276

Re: Change decimal color code on the fly

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.help
Subject Re: Change decimal color code on the fly
Date 2012-11-16 13:56 -0500
Organization A noiseless patient Spider
Message-ID <k86295$igh$1@dont-email.me> (permalink)
References <5509b9ea-041a-46e6-b788-2abe90fcb8e7@googlegroups.com> <7a706635-c2f5-4e32-8b5b-26b4b05c558b@googlegroups.com>

Show all headers | View raw


On 11/16/2012 1:39 PM, Bob wrote:
>[...]
> Thanks for your help. This sequence
> is what was needed.
> .....
>   mSet =   redStr +  greenStr +  blueStr;
>        mSetx= "121000000";
>        if (mSet.equals( mSetx)) {
>           mSet = "";

     What's this for?  It's harmless, but it's useless because you
never use the assigned value for anything: You wipe it out in the
very next line.  You have written yourself a note, then immediately
erased and overwritten it.

     ... all of which makes me wonder whether there's something
you want accomplished, something you imagine this assignment
will accomplish for you.  If so, I've got bad news ...

>           mSet = Integer.toString (255255255);
>           System.out.println("revision "+ mSet);
>        }
>        colorpxl.add(mSet);
>        mSet = "";

     Can't tell whether this assignment is or isn't worthwhile.
If the value of `mSet' will be used again, maybe the assignment
is needed -- but then again, maybe it's just a repetition of the
same ineffectual pattern as the first one.  I still harbor a
suspicion that you're missing something.

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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