File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Meaningless Drivel and the fly likes Two strings walk into a bar... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Two strings walk into a bar..." Watch "Two strings walk into a bar..." New topic

Two strings walk into a bar...

Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

Image too big. Source here ->

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Kevin Workman
Ranch Hand

Joined: Sep 28, 2010
Posts: 151
An infinite number of people walk into a bar. The first person goes up to the bartender and orders a full beer. The second person goes up to the bartender and orders half a beer. The third person goes up and orders a quarter of a beer. The bartender looks at them, says, "you're all a bunch of idiots," pours two full beers, and walks away.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Deepak Bala wrote:Image too big. Source here ->
To nerd for me!

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
for both...

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

I like the first one the most. It's very geeky but who cares. The second one is nice to.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

So we're using "to" instead of "too" in this thread. I'll follow this tradition to (BTW I didn't understand both of the jokes)...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The first is related to array overrun in C, hence not understood by Java devs
In the second, the infinite geometric series 1 + 1/2 + 1/4 + 1/8 ... is equal to 2 (related to Zeno's paradox)
Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

That string collected lot of garbage on its way to the bar. Thats what coke and rum can do to young Strings, not null terminated.

[List of FAQs] | [Android FAQ] | [Samuh Varta]
I agree. Here's the link:
subject: Two strings walk into a bar...
It's not a secret anymore!