This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes help with a 1B nitpick... I'm not really seeing it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "help with a 1B nitpick... I Watch "help with a 1B nitpick... I New topic

help with a 1B nitpick... I'm not really seeing it

Steven Lacher

Joined: Dec 26, 2002
Posts: 12
From Marilyn's nitpick...
"Now that we have such a refined program, it's time to pick at the finer details. What happens if the name is just perfectly long enough that you write exactly 80 characters? (like "Mike" or "Marilyn")
The problem is that if your console is 80 characters wide and you write to the 80th character, many consoles will start a new line for you. Since you also start a new line, you get double spaced lines. How can you work around this issue?"

I'm thinking that perhaps since I know my last character is always a space (name followed by " "), that I should instead limit the wrap limit to 79 characters instead. But I'm just not sure. Any thoughts or guidance, fellow cattle drivers?

SCJP 1.4
Carol Murphy
village idiot

Joined: Mar 15, 2001
Posts: 1202
I'm thinking you're onto something there.....
Have you checked out Aspose?
subject: help with a 1B nitpick... I'm not really seeing it
It's not a secret anymore!