wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes J2ME - Double class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME - Double class" Watch "J2ME - Double class" New topic

J2ME - Double class

Ashley Swinson

Joined: Jul 20, 2004
Posts: 12
My J2ME application recognizes the java.lang.Integer class and the
java.lang.Long class, but it will not recognize the java.lang.Double class.
I have to use the Double class, because I have to display a double as a
string. So, I need to wrap the double value in the Double class and then
use Double.toString() in order to get a string that I can print out. How
come it will not recognize the Double class? Is the J2ME Wireless Toolkit
supposed to recognize it? If so, how can I make it recognize it?
James Reilly
Ranch Hand

Joined: Oct 01, 2003
Posts: 30
If you've not already done so, you might check out the defined java.lang types available in CLDC 1.0 and CLDC 1.1, for example from the API references for them downloadable from here: http://java.sun.com/reference/api/

This thread may also help: http://www.coderanch.com/t/227577/JME/Mobile/me
[ July 26, 2004: Message edited by: James Reilly ]
I agree. Here's the link: http://aspose.com/file-tools
subject: J2ME - Double class