File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Cattle Drive and the fly likes 80th character issue with 1b Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "80th character issue with 1b" Watch "80th character issue with 1b" New topic

80th character issue with 1b

Sean Webster

Joined: Aug 24, 2002
Posts: 21
Howdy y�all,
I have submitted assignment 1b for nitpicking twice already, and I don�t seem to get the whole 80th character issue. I have created a few variables like:
Code removed. Please don't post actual code. Thanks.
Is the 80th character issue as simple as setting my numPerLine variable to 79 or do I need to figure out another solution. If anyone can help me with a good approach, I would be grateful.
I don�t want to keep submitting my assignment without first having a good feeling about it passing.

[ September 19, 2002: Message edited by: Matthew Phillips ]
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I don't have my code in front of me but I seem to remember that is how I did it.

Matthew Phillips
Brian Coates
Ranch Hand

Joined: Jul 03, 2001
Posts: 42
That's the one I'm on right now.
I'd say there's a couple ways to think about it. For the numPerLine variable, it depends on what you're numbering.
You could go with the allowable number of colums in the line. So, numPerLine = 80. Or, you could calculate how many times the names can be printed on a line. For Gertrude, numPerLine = 8 (i think).
I'm sure that I picked the "wrong" way, and I'll get nitpicked for it.
Sean Webster

Joined: Aug 24, 2002
Posts: 21
thanks, and sorry about displaying the actual code.
I agree. Here's the link:
subject: 80th character issue with 1b