This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
converting object to double?
sahar sa
Ranch Hand
Joined: Jul 06, 2009
Posts: 102
posted
Oct 13, 2009 05:38:08
0
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
Joined: Apr 14, 2004
Posts: 10336
I like...
posted
Oct 13, 2009 05:42:19
0
Please don't post the same question more than once.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: converting object to double?
Similar Threads
converting object[] to double?
AWT: Painting buttons
Double question
ClassCastError vs. Compilation Error
array error -- incompatible types
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter