O'Reilly logo

Programming Wireless Devices with the Java™ 2 Platform, Micro Edition, Second Edition by Jim Holliday - Editor, Aleksi Uotila, Mark Patel, Jyri Huopaniemi, Jim Van Peursem, Antero Taivalsaari, Roger Riggs

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5.4. New for CLDC 1.1

The following list summarizes the Java library changes between CLDC Specification versions 1.0 and 1.1. For details, refer to “CLDC Almanac” on page 359.

  • Classes Float and Double have been added.

  • The following methods have been added to other library classes to handle floating point values:

    • java.lang.Integer.doubleValue()

    • java.lang.Integer.floatValue()

    • java.lang.Long.doubleValue()

    • java.lang.Long.floatValue()

    • java.lang.Math.abs(double a)

    • java.lang.Math.abs(float a)

    • java.lang.Math.max(double a, double b)

    • java.lang.Math.max(float a, float b)

    • java.lang.Math.min(double a, double b)

    • java.lang.Math.min(float a, float b)

    • java.lang.Math.ceil(double ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required