Originally posted by jason adam:
I always love this one because the simplicity is mind-boggling. Do what Marilyn suggested, just act like the 80th character doesn't exist.
Originally posted by Michael Matola:
I'm at work at don't have access to look at my old assignments and nitpicks, but I'll offer a tip of a more general nature. (I think it applies here. If not, sorry.) When doing Cattle Drive assignments and given the choice between string concatenation and printing as you go, favor printing as you go.
(Am I giving too much away?)
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Originally posted by Gregg Bolinger:
The 80th character of what? ... fits on a line 80 characters in length, right?
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Michael Matola:
Here's some code that attempts to make the distinction clearer. Maybe it would be less confusing if you read "concatenation" in these discussions not just as plain old concatenation, but as "concatenation into a holding variable".
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|