File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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:

This thread may also help:
[ July 26, 2004: Message edited by: James Reilly ]
I agree. Here's the link:
subject: J2ME - Double class
It's not a secret anymore!