File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME - Double class" Watch "J2ME - Double class" New topic
Author

J2ME - Double class

Ashley Swinson
Greenhorn

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?
Thanks!
James Reilly
wrangler
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 ]
 
GeeCON Prague 2014
 
subject: J2ME - Double class