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 Help! 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!" Watch "Help!" New topic


Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
I've managed to get myself in a complete muddle with Say with my code de-generating through 5 discombobulations So, obviously I need to re-think my approach. I've gone through most of the earlier posts and need some confirmation before I re-try this thing.

  • Don't put all the logic in main(), point is write methods() which handle specific functions
  • Use division and modular arithmetic vs character strings to parse the number
  • Get the initial code working and nit-picked then move on to the extra-credit portion

  • Have I got this right?

Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Sounds good to me.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
ryan burgdorfer
Ranch Hand

Joined: Jan 24, 2001
Posts: 219
Interestingly enough, for my version which was finally accepted, there are no methods other than the main...everything is contained there, aside from a few class members. I guess I assumed that the requirement to use external methods applied to the extra credit version. And as I am finding out, through wrestling with the extra credit "billion" version, an external method is just what the doctor (nitpicker?) ordered. Makes the whole thing much easier to do.

<UL TYPE=SQUARE><I><LI>Ryan Burgdorfer<BR><LI>Java Acolyte</I></UL>
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Marilyn, Ok ... I'll take another crack at it this weekend.
Hi Ryan ... I went right for the extra credit. As it turns out, big mistake!
Pres Brawner
Ranch Hand

Joined: Jan 18, 2001
Posts: 92
Actually, I wrote an extra method and was told to get rid of it.
Good luck!
I agree. Here's the link:
subject: Help!
It's not a secret anymore!