Motorola maxx V6 manual Draft Subject to Change 83/201

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 83
Image 83

Java ME Developer Guide

Chapter 11 - JSR-139 - CLDC 1.1

 

 

 

details

 

Java.lang.ref.WeakR

 

New Class: Refer to

 

eference

 

CLDC Spec for more

 

 

 

details

Additional Utility

Java.util.Random

Double nextDouble

Returns the nextpseu-

Classes

 

()

dorandom, uniformly

 

 

 

distributed double

 

 

 

value between 0.0 and

 

 

 

1.0 from the random

 

 

 

number generator's

 

 

 

sequence

 

 

Float nextFloat ()

Returns the next pseu-

 

 

 

dorandom, uniformly

 

 

 

distributed double

 

 

 

value between 0.0 and

 

 

 

1.0 from the random

 

 

 

number generator's

 

 

 

sequence

 

 

Int nextInt (int n)

Returns a pseudoran-

 

 

 

dom, uniformly distrib-

 

 

 

uted int value between

 

 

 

0 (inclusive) and the

 

 

 

specified value

 

 

 

(exclusive), drawn

 

 

 

from this random num-

 

 

 

ber generator's se-

 

 

 

quence

 

Java.lang.Math

Static double E

The double value that

 

 

 

is closer than any oth-

 

 

 

er to e, the base of the

 

 

 

natural logarithms

 

 

Static double PI

The double value that

 

 

 

is closer than any oth-

 

 

 

er to pi, the ratio of

 

 

 

the circumference of a

 

 

 

circle to its diameter

 

 

Static double abs

Returns the absolute

 

 

(double a)

value of a double value

 

 

Static float abs

Returns the absolute

 

 

(float a)

value of a double value

 

 

Static double ceil

Returns the smallest

 

 

(double a)

(closest to negative in-

 

 

 

finity) double value

 

 

 

that is not less than

 

 

 

the argument and is

DRAFT - Subject to Change [83/201]

Page 83
Image 83
Motorola maxx V6 manual Draft Subject to Change 83/201