Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
converting object to double?
sahar sa
Ranch Hand
Posts: 102
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Dear,
I have a method called (getContentObject) which returns me an Object[]. I have a piece of code like this:
result = (Object[]) reply.getContentObject();
double price = Double.parseDouble((
String
)result[2]);
actually in the last line I've tried to convert object to double but I cant. can you tell me how can I make it ?
Thanks,
Sahar.
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please don't post the same question more than once.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
converting object[] to double?
AWT: Painting buttons
ClassCastError vs. Compilation Error
array error -- incompatible types
Double question
More...