aspose file tools*
The moose likes Cattle Drive and the fly likes Help Java 4b ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Help Java 4b ???" Watch "Help Java 4b ???" New topic
Author

Help Java 4b ???

Andy Boyd
Greenhorn

Joined: Feb 02, 2004
Posts: 5
I am stuck on this and need some help. I am having difficulty breaking up the large number into something that I can use. I took my assignment from 4a and converted it to work with numbers up to 999, and made that into a method that I can call. What I need to figure out is the best way to break up the number 999,999,999,999 into 3 digit pieces. I don't know if I should use sub-strings and then parse the integers from those strings or use some math to divide this number up. Any help or insight would be greatly appreciated. Thanks
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
Decisions decisions! I think you might do ok with either one of those approaches. There isn't one correct answer only. Is that what you were asking?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
I think I would go with the math because it is simpler, but either way can be acceptable, depending on how it is implemented.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help Java 4b ???