02 IntroJava2
02 IntroJava2
}
X Statement-X
Example output:
◦ The number 6 is even.
◦ The number 5 is odd.
Example
if (entry < 0)
{
int absValue = -entry;
}
System.out.println(absValue);
Field Detail
PI
public static final double PI
The double value that is closer than any other to pi, the ratio of
the circumference of a circle to its diameter.