File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Cattle Drive and the fly likes Assignment 4b Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Assignment 4b" Watch "Assignment 4b" New topic
Author

Assignment 4b

Sam Jackson
Greenhorn

Joined: Jan 30, 2008
Posts: 9
Hello all,

I have spent a fair amount of time on this assignment. I've probably not done it in the method that will be accepted by the nitpickers as I have StringBuffers and substrings all over the place. However it works......all except for 100, 1000, 10000, 100000 etc

I print out stuff like "one thousand zero hundred" etc

I thouught I would be easily able to solve this last part but I guess my brain is beginning to shut down. Can anybody offer any guidance please? before I start trying to insert my keyboard into my ear
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
It sounds like you need to put in a test and only print the "hundred" String if the number is not zero.

Don't worry, we will work with you to find the simple, more readable code. Have you seen Granny's pearls of wisdom? Notice the last one.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
Sam! Do not stick your keyboard in your ear!
It might slip and rupture your eardrum.
This is one of the most maddening assignments of the drive.
You are not alone.
[ June 25, 2008: Message edited by: Carol Murphy ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
If you're seriously stuck and have worked on this one particular issue for a few hours already, send me your code and I'll try to be more specific.
Sam Jackson
Greenhorn

Joined: Jan 30, 2008
Posts: 9
Hi Marilyn,

Thanks for the words of support.

I have had to email you for assistance as i'm starting to break things that were previously working. So I will wait for guidance before I continue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assignment 4b