You down with OOP? Yeah you know me!
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Tony Morris
Java Q&A (FAQ, Trivia)

"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
Originally posted by Rusty Shackleford:
Yeah that is a lot of code for a simple task.
Tony Morris
Java Q&A (FAQ, Trivia)
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
You down with OOP? Yeah you know me!
You down with OOP? Yeah you know me!
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
You down with OOP? Yeah you know me!
You down with OOP? Yeah you know me!
Originally posted by Layne Lund:
Another solution would be to have a single counter (say i) and calculate the other index based on the array's length and the first counter.

Originally posted by Karl Svensson:
That's what I was trying to suggest. But who listens to a n00b?![]()
[ January 30, 2006: Message edited by: Karl Svensson ]
| Consider Paul's rocket mass heater. |