From: Lew on
laredotornado wrote:
>>> Omg, Tom, can I buy you a beer or something? ᅵThat solution is exactly
>>> what I was looking for.
>

Lew wrote:
>> Do I get a beer, too, then?
>

Tom Anderson wrote:
> U did not post teh codez!!!
>

Oh, so it's not enough to post the answer, you have to do all the work
for the OP, too? I get it. So if one has an answer to give, but
thinks the OP should do SOME of the work themselves, there's no point
in posting the answer? We don't expect people to think and learn and
deduce any more? What kind of programmers will they turn out to be,
then?

>> --
>> Lew
>> Don't quote sigs, in particular not this one.
>

> Use sigdashes, which comprise two dashes followed by a space.
>

The internet eats my spaces when I post from a browser. When I post
from Thunderbird it works fine.

Even without sigdashes, it's possible not to quote the sig. You
didn't use sigdashes, and yet somehow by some weird miracle of my
using my brain your sig was not quoted.

I guess the message of your message is that people shouldn't have to
think.

--
Lew

From: Arne Vajhøj on
On 23-04-2010 15:24, Lew wrote:
> laredotornado wrote:
>>>> Omg, Tom, can I buy you a beer or something? ᅵThat solution is exactly
>>>> what I was looking for.
>
> Lew wrote:
>>> Do I get a beer, too, then?
>
> Tom Anderson wrote:
>> U did not post teh codez!!!
>
> Oh, so it's not enough to post the answer, you have to do all the work
> for the OP, too? I get it. So if one has an answer to give, but
> thinks the OP should do SOME of the work themselves, there's no point
> in posting the answer?

Lots of point just no beer.

Arne

From: Jeff Higgins on
On 4/23/2010 7:24 PM, Arne Vajh�j wrote:
> Lots of point just no beer.
Uumm, beer.
From: Lew on
laredotornado wrote:
>>> Omg, Tom, can I buy you a beer or something? That solution is exactly
>>> what I was looking for.

Lew wrote:
>> Do I get a beer, too, then?

Eric Sosman wrote:
> Queue<Beer> wall = ...;
> assert wall.size() == 99;
> while (! wall.isEmpty()) {
> System.out.println(wall.size()
> + " bottles of beer on the wall,");
> System.out.println(wall.size()
> + " bottles of beer,");
> System.out.println("\tYou take one down,");
> Beer beer = wall.remove();
> System.out.println("\tPass it around,");
> lew.consume(beer);
> System.out.println(wall.size()
> + " bottles of beer on the wall.\n");
> if (! lew.isSober())
> throw new IllegalStateException("Lew is looped");
> }
> assert false; // notreached

I recommend "Loose Cannon" beer from Clipper City Beer in Baltimore, Maryland,
USA.
<www.clippercitybeer.com>
and not merely because "lewscanon.com" was a pun on that expression.

Loose Cannon is very, very hoppy to the point of tasting like a citrus
beverage. That took some getting used to, but by the second glass it was a
favorite.

I'm sipping one now.

They have other specialty brews if you're less enamored of hops.

I prefer Clipper City to Sam Adams, Yuengling and nearly all the local
microbrews I've tasted. They don't use excess malt as a substitute for flavor
or brewing craft.

YMMV.

--
Lew
From: Lew on
Lew wrote:
>> I get it. So if one has an answer to give, but thinks the OP should
>> do SOME of the work themselves, there's no point in posting the
>> answer? We don't expect people to think and learn and deduce any
>> more? What kind of programmers will they turn out to be, then?

Tom Anderson wrote:
> Ones whose careers depend on continuing to buy me beer.

You are the master! I bow to your wisdom!

> I totally always use sigdashes! Are mine being eaten too?

You used them, and they worked, but they are ignored by the browser-based
reader I was using at that time, and part of your sig was above them.

Lew wrote:
>> I guess the message of your message is that people shouldn't have to
>> think.

Tom Anderson wrote:
> I do not believe i [sic] expressed a normative opinion on the matter.

No doubt, but why would I let that spoil my rhetoric?

Mind you, I have no objection to providing code to help the OP.

I do have a real objection to one ignoring advice that lacks every last
freaking detail of the code and prevents the querent from having to do any
work whatsoever. The OP pretended that your answer came out of nowhere, and
that no one else had suggested the same thing, as if the lack of code made the
other answer(s) any less valuable.

If they really didn't see the value of being told,
"Custom Comparator. Load the entries into a SortedSet with that
Comparator."
then they should have *asked* about it. Then when you gave the code for that
(I assume that's what they were really answering, not the post to which they
actually replied) they pretended like you were the first to even suggest such
a thing in answer to their question.

laredotornado, you are not going to make real progress in computer programming
until you grasp how to take a topic suggestion into code. There are wise
people out there, for example Roedy Green, who will give you a signpost to the
restaurant instead of a sandwich. Feed a man a meal and you feed him for an
hour; send him to the diner and you feed him for a lifetime. In this very
thread Roedy gave you good advice, and you threw it away dismissively by
saying only,

> I do use a TreeMap --
> "final Map<String, String> map = new
> TreeMap<String, String>();",
> but the order is not getting preserved when I call "map.entrySet".

And you didn't even provide an SSCCE! What is wrong with you?

--
Lew