This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
hmmmm . . . homework. Perhaps you could convert it to a String using the toString() method of Double. Then you could identify the value of each byte by using the charAt(index) method of String. You can find the number of chars in the whole thing by taking the String above and using the length() method. For instance your number will be 9 chars long. The last three will always be the decimal and the cents. So the "dollars" will always be at (length - 4) and (length - 5). The hundreds will always be at (length -6) the thousands and (length -8) and (length - 7) and the hundred thousands at (length - 10) and (length - 9). etc. Is that enough of a start?
"JavaRanch, where the deer and the Certified play" - David O'Meara
MOHAMMAD You already asked this question and received two replys here: http://www.javaranch.com/ubb/Forum33/HTML/004133.html. Please dont repost the same question multiple times, if you didn't receive a satisfactory answer post a reply to the current thread clarifying your question or telling why it was satisfactory. If you create new threads all the time the people that did respond will think they are being ignored.
------------------ Dave Sun Certified Programmer for the Java� 2 Platform