This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

J2ME - Double class  RSS feed

 
Ashley Swinson
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!