January 2002
Intermediate to advanced
264 pages
8h 3m
English
java.lang.Math
This class is a much smaller counterpart to the J2SE
Math class. Because J2ME does not support
floating-point variables, the class only provides six static methods
for determining the absolute value of an int or a
long, as well as the smaller (minimum) and larger
(maximum) of two int or long
variables.
public final classMath{ // static methods public static intabs(int a); public static longabs(long a); public static intmax(int a, int b); public static longmax(long a, long b); public static intmin(int a, int b); public static longmin(long a, long b); }
Read now
Unlock full access